Shame to say, in fact, for vscode configuration, the writer of C/C + + only referred to the tutorial, and then copied several JSON files, but did not understand the meaning.
For this problem, we need to solve the compilation problem, so in task.json, my configuration file is as follows
in which two parameters are command and args
Command: compiler for compilation args: command for compilation
As a matter of fact, it can be seen from the familiar partners of GCC. Here we post the parameter
so we need to connect our file names. The workspace in front represents the workspace, so we only need to write our own directory name at the back, as shown in the figure of linear_ List, connect them.
Read More:
- Clion develops STM32, adds files and compiles with an error “no such file or directory”“
- Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Pytorch torchvision.datasets.ImageFolder Found 0 files in subfolders error for
- After vscode installs ts, TSC compiles and generates JS, and an error is reported (repeated variables, etc.)
- The too many open files solution appears in stream classes such as files.list
- The template tags of all vscode Vue files report errors in red~
- About solving the problem that vscode files cannot be edited
- Visual studio 2013 compiles vtk7.1.0
- Vs2017 compiles pcl1.8.1 with vtk8.0 and uses qt5.9.5
- Ida batch processes virus share samples to obtain ASM files and bytes files
- make modules_ Install compiles the kernel driver as a module, and the location of. Ko file in the root file
- Modelsim compiles vivado IP and reports error protection region
- Xcode 12 compiles and reports errors on simulator
- Go compiles the EXE executable to remove the CMD window at run time
- Php7 compiles collect2: error: LD returned 1 exit status
- Clion compiles and runs a single C / cpp file
- Mac compiles Doris with MVN and reports an error checkstyle
- [error record] kotlin code compilation error when Android studio compiles (process @ nonnull parameter when upgrading support library)
- When vs2017 compiles CUDA project, “error msb6006:“ cmd.exe ”Exited with code 1 Solutions for