Commit 2e09292f authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

Fix typos and remove executed cells.

parent 259b2ccb
......@@ -132,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
......@@ -141,17 +141,9 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world!\n"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!./hello"
]
......@@ -321,12 +313,12 @@
"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). As in the previous case we can directly compile from heer using the ! symbol as follows:"
"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 may directly compile from here using the ! symbol as follows (if compilers are present in the environment):"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
......@@ -335,17 +327,9 @@
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world!\n"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!./hello"
]
......@@ -795,54 +779,18 @@
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-- The C compiler identification is GNU 9.3.0\n",
"-- The CXX compiler identification is GNU 9.3.0\n",
"-- Detecting C compiler ABI info\n",
"-- Detecting C compiler ABI info - done\n",
"-- Check for working C compiler: /home/vmataixf/bin/anaconda3/envs/formation_cpp/bin/x86_64-conda-linux-gnu-cc - skipped\n",
"-- Detecting C compile features\n",
"-- Detecting C compile features - done\n",
"-- Detecting CXX compiler ABI info\n",
"-- Detecting CXX compiler ABI info - done\n",
"-- Check for working CXX compiler: /home/vmataixf/bin/anaconda3/envs/formation_cpp/bin/x86_64-conda-linux-gnu-c++ - skipped\n",
"-- Detecting CXX compile features\n",
"-- Detecting CXX compile features - done\n",
"-- Configuring done\n",
"-- Generating done\n",
"-- Build files have been written to: /home/vmataixf/src/gettingstartedwithmoderncpp/6-InRealEnvironment/2c-Demo/7-CMake/build\n",
"Scanning dependencies of target hello\n",
"[ 25%] Building CXX object CMakeFiles/hello.dir/main.cpp.o\n",
"[ 50%] Building CXX object CMakeFiles/hello.dir/hello.cpp.o\n",
"[ 75%] Building CXX object CMakeFiles/hello.dir/who-are-you.cpp.o\n",
"[100%] Linking CXX executable hello\n",
"[100%] Built target hello\n"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!cd ./2c-Demo/7-CMake/ && mkdir build && cd build && cmake .. && make"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"What's your name? Hello \n"
]
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!cd ./2c-Demo/7-CMake/build && ./hello "
]
......@@ -1081,5 +1029,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
......@@ -33,7 +33,7 @@
"\n",
"This ~~[blog post](https://arne-mertz.de/2017/05/online-compilers/)~~ [GitHub page](https://arnemertz.github.io/online-compilers/) gives a list of online compilers we mentioned several times in this tutorial.\n",
"\n",
"I have used only [Coliru](http://coliru.stacked-crooked.com/) which provides an API to incorporate directly some interactive code in a Web page (disclaimer - I have not used that feature yet) and [Wandbox](http://melpon.org/wandbox) which may be useful in day-to-day work as you may try a snippet of code with many configurations. It's useful for instance when you intend to use a bleeding-edge feature to see which version of compilers support it or not. There are more advanced options as [Compiler Explorer](https://godbolt.org/) which allows to explore the intermediate Assembly code generated, this is a very advanced utility that may be useful to optimize your code and to understand how a compiler internnaly works.\n",
"I have used only [Coliru](http://coliru.stacked-crooked.com/) which provides an API to incorporate directly some interactive code in a Web page (disclaimer - I have not used that feature yet) and [Wandbox](http://melpon.org/wandbox) which may be useful in day-to-day work as you may try a snippet of code with many configurations. It's useful for instance when you intend to use a bleeding-edge feature to see which version of compilers support it or not. There are more advanced options as [Compiler Explorer](https://godbolt.org/) which allows to explore the intermediate Assembly code generated, this is a very advanced utility that may be useful to optimize your code and to understand how a compiler internally works.\n",
"\n",
"## Static analyzer tools\n",
"\n",
......@@ -188,5 +188,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
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