Re: Linker warning
Re: Linker warning
- Subject: Re: Linker warning
- From: Christopher Trainor <email@hidden>
- Date: Thu, 23 Jun 2011 18:21:18 +0000
- Thread-topic: Linker warning
I didn't change SYMROOT because I want the intermediate build files to go somewhere different than the product's files. Is there another way to achieve this?
Also, I notice that changing TARGET_BUILD_DIR seems to confuse Xcode 4 in a couple of ways. If I expand the Products group, Xcode shows my product in red because it thinks that it hasn't been built. I also can't debug the executable because it cannot
find it. If I stick with the default build location settings, it all works fine.
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