mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44: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
|
||||||
|
|||||||
Reference in New Issue
Block a user