无法打开源文件";Begin_code.h";(";SDL2/SDL.h";的依赖项) [英] cannot open source file "begin_code.h" (dependency of "SDL2/SDL.h")
本文介绍了无法打开源文件";Begin_code.h";(";SDL2/SDL.h";的依赖项)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ubuntu 20.01 LTM中尝试使用VS代码设置SDL2时,出现以下VS代码错误:
cannot open source file "begin_code.h" (dependency of "SDL2/SDL.h")
有什么建议吗?
推荐答案
只需将"/usr/include/SDL2/"
添加到c_cpp_Properties.json,如下所示:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/SDL2/"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu18",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}
这篇关于无法打开源文件";Begin_code.h";(";SDL2/SDL.h";的依赖项)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文