Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
I cannot resolve eprintf!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I cannot resolve eprintf!



I am trying to compile cutils-1.6. For some reason, I cannot resolve
__eprintf, although using "nm" on the libgcc.a shows me it's there.
I have added '-lgcc' to my LDFLAGS, and even symbolically linked libgcc.a
from /usr/lib/gcc/darwin/defaults to /usr/lib/gcc.

Each program in cutils gives me the following messages -

gcc -c -I. -I. -I../.. -I./../.. -I./../../lib -fno-common -no-cpp-precomp
cdecl.c
bison -y -d ./parser.y
mv y.tab.c parser.c
mv y.tab.h parser.h
gcc -c -I. -I. -I../.. -I./../.. -I./../../lib -fno-common -no-cpp-precomp
parser.c
flex ./lexer.l
mv lex.yy.c lexer.c
gcc -c -I. -I. -I../.. -I./../.. -I./../../lib -fno-common -no-cpp-precomp
lexer.c
gcc -ltinfo -lgcc -o cdecl cdecl.o parser.o lexer.o ../../lib/libcutils.a
ld: Undefined symbols:
___eprintf
gmake[2]: *** [cdecl] Error 1


Any ideas?

Celeste Suliin Burris
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.