Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/145.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Can';无法使Visual Studio代码C正常工作_C++_Visual Studio - Fatal编程技术网

C++ Can';无法使Visual Studio代码C正常工作

C++ Can';无法使Visual Studio代码C正常工作,c++,visual-studio,C++,Visual Studio,我在Ubuntu中使用微软visual studio代码已经有几天了,但我发现了一个让我非常恼火的问题; 当我使用custom includes时,clang错误解析器会给我以下错误: physical_memory.c /arch/x86/physical_memory.h' file not found (10,10) 但事实上,我已经将include文件夹添加到c_cpp_properties.json中,如下所示: { "name": "Linux",

我在Ubuntu中使用微软visual studio代码已经有几天了,但我发现了一个让我非常恼火的问题; 当我使用custom includes时,clang错误解析器会给我以下错误:

physical_memory.c
/arch/x86/physical_memory.h' file not found (10,10)
但事实上,我已经将include文件夹添加到c_cpp_properties.json中,如下所示:

    {
        "name": "Linux",
        "includePath": ["/usr/include",
                        "/home/manuel/Documentos/OSDEV/XeonOS/kernel/include",
                        "/opt/cross/lib/gcc/i686-elf/5.4.0/include"],
        "browse" : {
            "limitSymbolsToIncludedHeaders" : true,
            "databaseFilename" : ""
        }
    },
我已经多次检查文件名是否正确,并尝试使用include/和include/*但都不起作用,而且项目编译和工作正常

顺便说一下,这是导致错误的代码行:

#include <arch/x86/physical_memory.h>
#包括
我不介意有这个错误,但由于某种原因,当发现包含错误时,叮当声实时错误解析器停止处理该文件,这是我觉得非常烦人的事情


您知道如何修复它吗?

#包括“arch/x86/physical_memory.h”
@RawN已经尝试过1)验证头文件是否存在于指定目录中。2) 在您的Visual Studio版本中,找到用于设置包含路径的属性,并将该路径添加到列表中。@ThomasMatthews我已经多次验证过这一点,2,我使用的是Visual Studio代码,而不是Visual Studio,因此我执行自己的makefiles,其中包含路径与上面相同,没有人知道如何修复它:?
\include“arch/x86/physical_memory.h“
@RawN已尝试1)验证头文件是否存在于指定目录中。2) 在您的Visual Studio版本中,找到用于设置包含路径的属性,并将该路径添加到列表中。@ThomasMatthews我已经多次验证过这一点,2,我使用的是Visual Studio代码,而不是Visual Studio,因此我执行自己的makefiles,其中包含路径与上面相同,没有人知道如何修复它:?