gpt4 book ai didi

c - 为什么我的 omp.h 路径未被识别?

转载 作者:行者123 更新时间:2023-11-30 16:40:57 25 4
gpt4 key购买 nike

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": ""
}
}
]
}

我错过了什么?又该如何解决呢?

最佳答案

我已修复将路径更改为:

"/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/"

删除 omp.h 文件。

关于c - 为什么我的 omp.h 路径未被识别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46451831/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com