1
windows:
https://www.cnblogs.com/zjh114/p/17650234.html
2
苹果的mac :
直接运行
https://zhuanlan.zhihu.com/p/103308900
调试
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | //cpp_.... { "configurations" : [ { "name" : "Mac" , "includePath" : [ "${workspaceFolder}/**" ], "defines" : [], "macFrameworkPath" : [ "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" ], "compilerPath" : "/usr/bin/clang" , "cStandard" : "c11" , "cppStandard" : "c++17" , "intelliSenseMode" : "clang-x64" } ], "version" : 4 } // launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version" : "0.2.0" , "configurations" : [ { "name" : "C/C++: clang++ build and debug active file" , "type" : "cppdbg" , "request" : "launch" , "program" : "${fileDirname}/${fileBasenameNoExtension}" , "args" : [], "stopAtEntry" : true , "cwd" : "${workspaceFolder}" , "environment" : [], "externalConsole" : true , "MIMode" : "lldb" , "preLaunchTask" : "C/C++: clang++ build active file" } ] } // task.json { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version" : "2.0.0" , "tasks" : [ { "type" : "shell" , "label" : "C/C++: clang++ build active file" , "command" : "/usr/bin/clang++" , "args" : [ "-std=c++17" , "-stdlib=libc++" , "-g" , "${file}" , "-o" , "${fileDirname}/${fileBasenameNoExtension}" ], "options" : { "cwd" : "${workspaceFolder}" }, "problemMatcher" : [ "$gcc" ], "group" : { "kind" : "build" , "isDefault" : true }, "detail" : "Task generated by Debugger." } ] } |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
2022-12-16 dp 记录