小编Rec*_*r12的帖子

如何为 Visual Studio 代码设置 boost

所以我基本上构建了整个boost库并将它们放在C:\boost\include\boost-1_73中。但我有一种感觉,在使用这个库之前我必须包含更多步骤。我一直遵循本指南,直到将其设置为 Visual Studio 代码。所以现在我正在互联网上搜索如何设置它。这是我遵循的指南。但我没有像指南中那样将其包含在program_files目录中。

https://gist.github.com/sim642/29caef3cc8afaa273ce6

在我的 Task.Json 中我有

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "C/C++: g++.exe build active file",
            "command": "C:\\new\\mingw-w64\\i686-8.1.0-posix-dwarf-rt_v6-rev0\\mingw32\\bin\\g++.exe",
            "args": [
                "-g",
                "${fileDirname}\\**.cpp",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe",      
            ],
            "options": {
                "cwd": "${workspaceFolder}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

在我的主要 settings.json 中我有

{
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
    "code-runner.saveFileBeforeRun": true,
    "code-runner.saveAllFilesBeforeRun": true,
    "code-runner.fileDirectoryAsCwd": true,
    "code-runner.ignoreSelection": true,
    "haskelly.exec.reuseTerminal": true,
    "C_Cpp.updateChannel": "Insiders",
    "r.rterm.windows": "C:\\Program Files\\R\\R-3.6.1\\bin\\R",
    "vsicons.dontShowNewVersionMessage": true,
    "files.autoSave": "onWindowChange",
    "workbench.colorCustomizations": {},
    "editor.tokenColorCustomizations": null,
    "php.validate.executablePath": …
Run Code Online (Sandbox Code Playgroud)

c++ boost visual-studio-code

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

boost ×1

c++ ×1

visual-studio-code ×1