我尝试包含以下内容:
#include <boost/dynamic_bitset.hpp>但是,我得到了这个错误:
boost/dynamic_bitset.hpp: No such file or directory我的c_cpp_properties.json文件如下所示:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}", "/mnt/c/Program Files/boost_1_62_0/boost_1_62_0"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cppStandard": "c++17",
"intelliSenseMode":"gcc-x64"
}
],
"version": 4
}我在makefile中使用了相同的路径,这是可行的,所以我不知道问题出在哪里。"Program Files“中的空格有问题吗?
编辑:从字面上看,只需关闭并重新打开vscode就可以解决问题……
发布于 2020-05-17 08:50:37
也许问题出在visual studio代码没有更新错误消息:我也遇到过同样的问题,但我注意到只要关闭并重新打开visual studio代码就可以解决这个问题。看看它能不能用。
https://stackoverflow.com/questions/61845468
复制相似问题