SCON包含目录不工作
我正在尝试编译一个简单的c++程序,但是没有将include文件添加到compile命令中 这是密码SCON包含目录不工作,c,raspberry-pi,scons,C,Raspberry Pi,Scons,我正在尝试编译一个简单的c++程序,但是没有将include文件添加到compile命令中 这是密码 #include <stdlib.h> #include "GLES2/gl2.h" int main() { return 0; } 烤饼产量 scons:正在读取SConscript文件。。。 scons:已完成读取SConscript文件。 斯科恩:建立目标。。。 gcc-o测试\u gcc\u scons.o-c测试\u gcc\u scons.c test_gc
#include <stdlib.h>
#include "GLES2/gl2.h"
int main()
{
return 0;
}
烤饼产量
scons:正在读取SConscript文件。。。
scons:已完成读取SConscript文件。
斯科恩:建立目标。。。
gcc-o测试\u gcc\u scons.o-c测试\u gcc\u scons.c
test_gcc_scons.c:2:23:致命错误:GLES2/gl2.h:没有这样的文件或目录
目录
pi@raspberrypi ~/projects/test_gcc_scons $ ls include/GLES2/
gl2ext.h gl2.h gl2platform.h
编辑:发现问题。我不得不这样做
env.Program("test_gcc_scons.c")
env.Program("test_gcc_scons.c")
发现了问题。我不得不这样做
env.Program("test_gcc_scons.c")
env.Program("test_gcc_scons.c")