0
간단한 C++ 프로그램을 컴파일하려고하는데 include 파일이 컴파일 명령에 추가되지 않았습니다.scons Include 디렉토리가 작동하지 않습니다.
여기 코드
#include <stdlib.h>
#include "GLES2/gl2.h"
int main()
{
return 0;
}
SConstruct
env = Environment()
cpp_path = '''
.
include
'''
env.Append(CPPPATH = Split(cpp_path))
Program('test_gcc_scons.c')
SCons는 출력
SCons는에게 있습니다 : SConscript 파일 ... SCons는 읽기 : SConscript 파일을 읽을 다. SCons는 건물의 목표 ... 의 gcc -o test_gcc_scons.o -c test_gcc_scons.c test_gcc_scons.c : 2 : 23 : 치명적인 오류 : GLES2/gl2.h : 해당 파일이나 디렉토리
디렉토리
[email protected] ~/projects/test_gcc_scons $ ls include/GLES2/
gl2ext.h gl2.h gl2platform.h
EDIT : 문제가 발견되었습니다. 대신이 작업을 수행해야 함
env.Program("test_gcc_scons.c")