mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
@@ -93,7 +93,7 @@ You should first compile the C code with `gcc`:
|
|||||||
gcc -c foo.c
|
gcc -c foo.c
|
||||||
```
|
```
|
||||||
|
|
||||||
Comple and output the `foo.o` file, and link the C++ code to the `.o` file using `clang++` (or both compile to `.o` and then unlink them together):
|
Compile and output the `foo.o` file, and link the C++ code to the `.o` file using `clang++` (or both compile to `.o` and then unlink them together):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clang++ 1.1.cpp foo.o -std=c++2a -o 1.1
|
clang++ 1.1.cpp foo.o -std=c++2a -o 1.1
|
||||||
@@ -146,4 +146,4 @@ Don't worry at the moment, we will come to meet them in our later chapters.
|
|||||||
|
|
||||||
## Licenses
|
## Licenses
|
||||||
|
|
||||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work was written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](../../LICENSE).
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work was written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](../../LICENSE).
|
||||||
|
|||||||
Reference in New Issue
Block a user