• 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: Xcode Static Libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode Static Libraries


  • Subject: Re: Xcode Static Libraries
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 11 Feb 2008 08:34:05 -0800


On Feb 10, 2008, at 11:26 PM, Cory R Leach wrote:


Now what I do is I add libTestLib.a to the project by just doing add Existing File and selecting it.
I look at the target and under TestApp->Link Binary With Library I see my library libTestLib.a and
I assume it will compile and link just fine. 

Of course the problem is now that it just doesn't work: 
Undefined symbols:
  "TestLib()", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
  "TestLib()", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Build failed (1 error)


The way you describe it you seem to be doing everything correctly, but it would be more helpful to have the "Linking " line from the build transcript that produced the error, not just the error itself. That way we could see whether the libTestLib.a was actually included, whether it's being referred to correctly, whether the right flags are being passed to gcc/ld, etc.

Chris
 _______________________________________________
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

References: 
 >XCode Static Libraries (From: Cory R Leach <email@hidden>)

  • Prev by Date: Re: WebObjects Template in Xcode 3.0
  • Next by Date: Re: What's proper way to exit IB? with tab views
  • Previous by thread: XCode Static Libraries
  • Next by thread: newbie alert: just trying to follow documention
  • Index(es):
    • Date
    • Thread