我试图在C中的程序中包含一个自定义文件,它编译ok。但是,VsCodium一直抱怨"Squiggles“和"includePath”(不知道这意味着什么),实际上,我不知道如何配置“..vscode/c_cpp_properties.json ties.json”文件,因为我使用WSL编译代码,VsCodium安装在Windows上。
这是台词:
#include "./types.h"
// #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (\\wsl$\Arch\home\{*}\{*}\{*}.c).C/C++(1696)
// cannot open source file "./types.h"我该怎么办?虽然它起作用了,但还是有点烦
发布于 2022-06-19 12:26:35
转到File->Preferences->Settings.
可选:切换到Workspace选项卡(如果只希望它在当前工作区生效)。
在“搜索”框中键入c_cpp include path或类似的内容。
找到C_Cpp->Default: Include path字段,然后单击Add item。
输入包含要包含的文件的包含路径。
https://stackoverflow.com/questions/72674138
复制相似问题