我在Visual Studio Code中的问题控制台向我显示以下消息:
#include errors detected. Please update your includePath. InteliSense features for this translation unit
cannot open source file "omp.h"
即使我在找到omp.h的路径后将其显示为:
,也会显示此消息find /usr -name omp.h
我的c_cpp_properties.json文件:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/omp.h",
"/usr/include/c++/7.2.0",
"/usr/include/c++/7.2.0/x86_64-pc-linux-gnu",
"/usr/local/include",
"/usr/lib/clang/5.0.0/include",
"/usr/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/omp.h",
"/usr/include/c++/7.2.0",
"/usr/include/c++/7.2.0/x86_64-pc-linux-gnu",
"/usr/local/include",
"/usr/lib/clang/5.0.0/include",
"/usr/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
]
}
我错过了什么?以及如何解决它?
答案 0 :(得分:0)
我已经修改了路径:
"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/"
删除omp.h文件。