• 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
Re: link stage ignoring my static lib!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link stage ignoring my static lib!


  • Subject: Re: link stage ignoring my static lib!
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 12 Nov 2007 11:14:14 -0700

Peter Mulholland wrote:

>Those undefined symbols are in libGame.a - but ld has ignored the file
>completely!

Does your Game lib have an fopen() function in it?

If not, then something else is wrong, because you have an unresolved
fopen() reference:

ReelDealCasino2006.build/Debug_Main/ReelDealCasino2006.build/Objects-normal/i386
/NDX_AAFont.o reference to undefined _fopen(char const*, char const*)


Without knowing anything else, this looks like you've declared a prototype
for fopen() without placing it in the non-mangled C name space.

If that's the case, it makes me wonder whether libGame was compiled as C or
C++, and consequently, whether the synbols in the compiled lib are defined
as mangled C++ names or as unmangled C names.  Or conversely, whether the
declarations in your source declare the Game prototypes in the right name
space.

Or I could easily be wrong.

  -- GG


 _______________________________________________
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

  • Prev by Date: Re: scroll after window resize
  • Next by Date: Re: link stage ignoring my static lib!
  • Previous by thread: Re: optimizing cpp files in Objective C project
  • Next by thread: Re[2]: link stage ignoring my static lib!
  • Index(es):
    • Date
    • Thread