赞
踩
https://pan.baidu.com/s/1UvzMpnxo-L_nSbiCXYLjVw
vs41
C/C++
CMake
CMake Tool
run code
即可运行CMakeLists.txt
文件, 文件名正确, 没有中文build
文件夹Ctrl
+ shift
+ p
cmake Configure
launch.json
文件,1 launch.json
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) 启动", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/build/main.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", // "miDebuggerPath": "/path/to/gdb", "setupCommands": [ { "description": "为 gdb 启用整齐打印", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }
{ "tasks": [ { "type": "cppbuild", "label": "C/C++: g++.exe build active file", "command": "D:\\MinGW\\mingw64\\bin\\g++.exe", "args": [ "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "D:\\MinGW\\mingw64\\bin" }, "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true }, "detail": "Generated task by Debugger" } ], "version": "2.0.0" }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。