Commit 9c7f8e14 authored by Vicente Mataix Ferrándiz's avatar Vicente Mataix Ferrándiz Committed by GILLES Sebastien
Browse files

Adding direct compilation 1

parent 0dd0ff24
......@@ -90,10 +90,26 @@
Please notice the name of the file with the `main()` function and the name of the executable are completely custom; you have no requirement on the names of files and executable.
%% Cell type:markdown id: tags:
If your current machine has the compilers installed it is possible to execute these compilation commands instead of opening the terminal use the ! symbol as follows:
%% Cell type:code id: tags:
``` C++17
!g++ -std=c++17 ./2c-Demo/1-HelloWorld/hello.cpp -o hello
```
%% Cell type:code id: tags:
``` C++17
!./hello
```
%% Cell type:markdown id: tags:
### Source files extensions
The plural is not a mistake: unfortunately, contrary to many languages, there is no universal convention upon the extensions to use for C++ files. There are widely spread conventions, but a library may choose not to follow them.
Editors and IDE know the most common ones and usually provide a way to add your own spin so that they may provide language recognition and all that goes with it (colored syntax, completion helper and so on).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment