Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/68.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
SCON包含目录不工作_C_Raspberry Pi_Scons - Fatal编程技术网

SCON包含目录不工作

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

我正在尝试编译一个简单的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_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")