• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
link error: fputs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

link error: fputs


  • Subject: link error: fputs
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 27 Oct 2008 13:15:06 -0400

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?


_______________________________________________ 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
  • Follow-Ups:
    • Re: link error: fputs
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Comparison WTF's
  • Next by Date: Re: Comparison WTF's
  • Previous by thread: Re: Comparison WTF's
  • Next by thread: Re: link error: fputs
  • Index(es):
    • Date
    • Thread