Re: Link Failure
Re: Link Failure
- Subject: Re: Link Failure
- From: Chris Espinosa <email@hidden>
- Date: Thu, 14 May 2009 11:37:43 -0700
On May 14, 2009, at 10:23 AM, K. Chen wrote: I have two Xcode projects: P1 to creates a C++ static library and P2 to create an executable linking with the P1 library.
P1: Installation Directory is set to /usr/local/lib P2: Other Linker Flag is set to -L/usr/local/lib -lmyLib
But I got an error on P2 build which says library not found for -lmyLib
Any idea what went wrong?
Your product isn't copied into the Installation Directory until you either a) execute xcodebuild install at the command line in your project directory, or b) check the "Deployment Postprocessing" checbox in the confuguration you're building (usually the Release configuration).
Copying to system locations often involves overwriting code currently in use by other software, and can require elevated privileges, which is why doing it outside of Xcode from the command line is the most common way to install built software.
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