VScode配置C环境概要

Posted on 2022-11-24 21:20  梦中千秋  阅读(45)  评论(0编辑  收藏  举报

编译器

https://sourceforge.net/projects/mingw-w64/

环境配置

path下添加编译器的bin路径
例:在这里插入图片描述
在这里插入图片描述

测试环境

gcc -v
在这里插入图片描述查看路径

gcc -v -E -x c++ -

在这里插入图片描述

插件

在这里插入图片描述

配置文件

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/include/c++",
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/include/c++/mingw32",
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/include/c++/backward",
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/include",
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/../../../../include",
                "d:/program/ccccc/bin/../lib/gcc/mingw32/9.2.0/include-fixed"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "windows-gcc-x86",
            "compilerPath": "D:\\Program\\ccccc\\bin\\mingw32-g++.exe"
        }
    ],
    "version": 4
}