• 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 Failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Link Failure (From: "K. Chen" <email@hidden>)

  • Prev by Date: iPhone Platform Compiler Symbol?
  • Next by Date: Re: Using Objective-C object in C++ source
  • Previous by thread: Re: Link Failure
  • Next by thread: Converting .plist during the build process
  • Index(es):
    • Date
    • Thread