Re: Xcode Static Libraries
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