2007年2月17日土曜日

osxでkmyaccをmake

osxでkmyaccをmakeする時にこのようなエラーがでる場合には
cc -Wall -O2 '-DPARSERBASE="/usr/local/lib/kmyacc"' -c -o misc.o misc.c
misc.c: In function 'sortlist':
misc.c:127: error: 'uint' undeclared (first use in this function)
misc.c:127: error: (Each undeclared identifier is reported only once
misc.c:127: error: for each function it appears in.)
misc.c:127: error: parse error before 'n'
misc.c:144: error: 'n' undeclared (first use in this function)
misc.c:150: error: 'xn' undeclared (first use in this function)
misc.c:150: error: 'yn' undeclared (first use in this function)
make[1]: *** [misc.o] Error 1

uint をとりあえず、unsigned intに修正してmakeする。
Share:

0 コメント: