odcctools 컴파일 에러-도와주세여.
cd libstuff && make
make[1]: Entering directory `/home/hys545/work/gnustep/OpenDarwin/projects/odcctools/src/files/libstuff'
gcc -Wall -Wno-import -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1 -DINTERIM_PPC64 -I..//include -I../include -include ../include/extern.h -I../include/foreign -g -O2 -c -o print.o print.c
In file included from print.c:24:
..//include/stuff/print.h:36: error: syntax error before "va_list"
print.c:34: error: syntax error before "va_list"
print.c: In function `vprint':
print.c:36: error: `format' undeclared (first use in this function)
print.c:36: error: (Each undeclared identifier is reported only once
print.c:36: error: for each function it appears in.)
print.c:36: error: `ap' undeclared (first use in this function)
print.c: In function `print':
print.c:48: error: `va_list' undeclared (first use in this function)
print.c:48: error: syntax error before "ap"
print.c:50: warning: implicit declaration of function `va_start'
print.c:50: error: `ap' undeclared (first use in this function)
print.c:52: warning: implicit declaration of function `va_end'
make[1]: *** [print.o] 오류 1
make[1]: Leaving directory `/home/hys545/work/gnustep/OpenDarwin/projects/odcctools/src/files/libstuff'
make: *** [libstuff] 오류 2
print.h의 내용을 보니 Metrowerks용인가 봅니다. 다음과 같
print.h의 내용을 보니 Metrowerks용인가 봅니다. 다음과 같이 고치면 되지 않을까요?
#import는 뭘까요? #pragma once와 비슷한 걸까요? -.-a
[quote="doldori"]print.h의 내용을 보니 Metrowe
이거 원래 opendarwin에서 사용하는겁니다
그래서 object-c에서 사용하는거로 압니다
그런데 이게 obj-c코드인지 c코드인지는 헛갈림
#import는 자바와 비슷한 용도로 압니다.ㅇ
즐린
#importg를# include로 바꾸니까 에[러 사라지더군
#importg를
# include로 바꾸니까 에[러 사라지더군
즐린
댓글 달기