-1
내가 2 "가 .c"파일 포함 "myc의"라는 하위 디렉토리있어 :Scons "Dir"명령이 작동하지 않습니까?
$ ls myc
1.c f.c
을 그리고 내 현재 디렉토리가 SConstruct 있습니다
$ cat SConstruct
myc=Dir('myc')
print myc
Program('test2',myc)
실행 SCons는을, 그것은 무리를 인쇄 오류 :
어떤 이상한$ scons
scons: Reading SConscript files ...
myc
scons: done reading SConscript files.
scons: Building targets ...
gcc -o test2 myc
/usr/bin/ld: cannot find myc: File format not recognized
collect2: error: ld returned 1 exit status
scons: *** [test2] Error 1
scons: building terminated because of errors.
: 나의 실망은 "myc의"가 아닌 varible 값 및 컴파일을 인쇄 나는 "인쇄 myc의"가 "1.C"와 "FC"를 나열합니다 기대 또한 실패합니다.
수정 방법은 무엇입니까?