Re: link error: fputs
Re: link error: fputs
- Subject: Re: link error: fputs
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 27 Oct 2008 18:40:12 +0100
Le 27 oct. 08 à 18:15, Eric Gorr a écrit :
I've got a strange link error...
Undefined symbols:
"_fputs$UNIX2003", referenced from:
OutputMessage::SendString(char const*)in libGSESDK.a(GSDebug.o)
In my build settings, I do have:
LINK_WITH_STANDARD_LIBRARIES = YES
I am building against the 10.4 SDK.
The code in GSDebug.cpp which is causing this is:
fprintf(theFile, "%s", s);
I assume it should be pulling fputs from /Developer/SDKs/
MacOSX10.4u.sdk/usr/lib and if I do:
nm libc.dylib | grep fputs
I get:
U _fputs
U _fputs
libc.dylib(fputs.So):
900298b0 T _fputs
U _fputs
U _fputs
and what I find interesting is that if I do the same thing on libc
in the 10.5 SDK, I get:
000885bd T _fputs
0003b7e1 T _fputs$UNIX2003
This time I noticed _fputs$UNIX2003 is defined whereas in the 10.4
sdk it wasn't.
Basically, I am confused as to why I am getting the link error and
what I found means.
Any comments?
This append when you try to link files compiled with deployment target
set to 10.5 (and SDK 10.5) and try to link on 10.4 libraries.
Try to clean your project and rebuild it.
If this is not enough we need the compiler transcript to help you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden