需要配置两个编译器就可以在同一个工作空间中同时运行c和c++了。
c_cpp_properties.json文件
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "gcc-x64",
"compilerPath": "D:/DevelopmentTool/mingw64/bin/gcc.exe"
},
{
"name": "Win32c++",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "D:/DevelopmentTool/mingw64/bin/g++.exe",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [],
"browse": {
"path": [
"${workspaceFolder}/**"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}
版权声明:本文为qq_38971331原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。