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

Re: Linker warning


  • Subject: Re: Linker warning
  • From: Christiaan Hofman <email@hidden>
  • Date: Thu, 23 Jun 2011 20:00:49 +0200


On Jun 23, 2011, at 19:48, Christopher Trainor wrote:

I want my target files to be in a non-standard location.  I want my executable to be in a subfolder of the folder where the project file lives.  I made the following change to my build settings:

TARGET_BUILD_DIR = $(PROJECT_DIR)/$CONFIGURATION

I also changed LIBRARY_SEARCH_PATHS to specify the locations of my needed libraries.

This almost works correctly.  The executables get put into projectdir/Debug and projectdir/Release.

The problem I have now is that I am getting a linker warning:

ld: warning: directory not found for option '-L/ (path to project dir)/build/Debug'

This makes sense, since that directory is no longer getting created now that the target file is going to a different location.  Is there some other setting I have to change to get it to stop looking in this directory for library files?

Thanks,
Chris

There are several. I think what you want to override is SYMROOT, not TARGET_BUILD_DIR, as the latter is dependent on the former, but other settings (such as BUILD_DIR) also depend on SYMROOT.

Christiaan

 _______________________________________________
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

  • Follow-Ups:
    • Re: Linker warning
      • From: Christopher Trainor <email@hidden>
References: 
 >Linker warning (From: Christopher Trainor <email@hidden>)

  • Prev by Date: Linker warning
  • Next by Date: Re: Linker warning
  • Previous by thread: Linker warning
  • Next by thread: Re: Linker warning
  • Index(es):
    • Date
    • Thread