You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Section22-Bonus_Section-Using_Visual_Studio_Code/readme.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,10 @@ VSCode require the `.cpp` file to be selected prior building it
52
52
```json
53
53
"args": [
54
54
"-g",
55
-
"-Wall",// to generate all warnings
56
-
"-std=c++20",// use c++20 standard
55
+
"-Wall",// to generate all warnings
56
+
"-std=c++20",// use c++20 standard
57
57
// "${file}",
58
-
"${fileDirname}/*.cpp",// compile all c++ files
58
+
"${fileDirname}/*.cpp",// compile all c++ files
59
59
"-o",
60
60
"${fileDirname}/${fileBasenameNoExtension}"
61
61
],
@@ -93,9 +93,9 @@ main main.cpp main.dSYM
93
93
## Running multiple C++ programs
94
94
According to my file structure, which I have `test1` and `test2` directory with respective `.cpp` files, this is to avoid build error
95
95
96
-
``
96
+
```
97
97
clang: error: no such file or directory: 'test2.cpp'
98
98
clang: error: no input files
99
-
``
99
+
```
100
100
101
101
Despite the `.cpp` file name is different, I learned that there will be buile errors if `tes1.cpp` and `test2.cpp` are in the same directory during build.
0 commit comments