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

Adding second direct compilation example

parent 9c7f8e14
......@@ -321,7 +321,33 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"works as expected and creates a valid `hello` executable (also note the header file is not required explicitly in this build command)"
"works as expected and creates a valid `hello` executable (also note the header file is not required explicitly in this build command). As in the previous case we can directly compile from heer using the ! symbol as follows:"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"!g++ -std=c++17 2c-Demo/3-InTwoFilesWithHeader/hello.cpp 2c-Demo/3-InTwoFilesWithHeader/main.cpp -o hello"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world!\n"
]
}
],
"source": [
"!./hello"
]
},
{
......
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