Re: Debug and Release llibraries
Re: Debug and Release llibraries
- Subject: Re: Debug and Release llibraries
- From: Chris Espinosa <email@hidden>
- Date: Wed, 19 Oct 2005 12:21:38 -0700
On Oct 19, 2005, at 3:28 AM, Caerwyn Pearce wrote: I have a minor build issue which seemed easy enough with (ahem) CodeWarrior but I’m damned if I can get it to work with Xcode. I’m using Xcode 2.1, I’m building a Carbon application which will have Debug and Release configurations. I have a library which I wish to include in the application for which I have in turn a debug and release version. I would like to link the release library into the release build of my app and the debug library into the debug build. The only way that I can see to do this is to have duplicate Targets and strip each target down to have either a debug or a release configuration. This strikes me as not the right way and is going to give me headaches for projects with lots of files. Quite simply is there a better way.
As others have recommended, you get maximum control by adding the specific paths to your link line.
If you're doing everything in the Xcode IDE, if you set up your projects to use a common build folder, the linkage of debug/release libraries happens automatically without any setup or intervention on your part.
If you want to take prebuild Debug and Release libraries and link them to Debug and Release configurations of an Xcode project without using the linker flags, one approach is to just drag the Debug link library to your app's Debug build folder, the Release link lib to your app's Release build folder, then (this is the important part) rename them to the same name in the separate folders.
The CodeWarrior convention is to look for things with separate names in the same place. The Xcode convention is to look for things with the same name in separate places. Mapping one to the other is a little work, but not that hard, really.
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