Re: Linking static libraries
Re: Linking static libraries
- Subject: Re: Linking static libraries
- From: Rush Manbert <email@hidden>
- Date: Fri, 03 Mar 2006 07:52:04 -0800
Andrew Taylor wrote:
hi,
I am trying to use Xcode 2.2 to link several static libraries into an
application. No they can't be dynamic libraries or frameworks, so lets
not go there.
Initially I created the bunch of needed Xcode projects, one target each,
and with the standard "release" and "debug" build configurations and
built everything with the debug build configuration. There are no
linkages between projects in the project files themselves.
The application project that uses the static libraries includes the
static libraries from the debug folder, because that is what I had -
debug builds of libraries.
Now I want to build a release version. So I went and built the release
build configuration of everything.
The application won't link because it can't find any static libraries.
That seems obvious since when the static libraries are included in the
project you have to specify them down to the file. But I don't see a way
to specify a static library based on the build configuration.
What is the magic part of the application project build configuration
that controls where it looks for a static library based on the build
configuration?
(Right now my work around is to put the static libraries in one place,
independent of build configuration and link to that. So I can't keep a
"debug" static library around for the "debug" version of the application
and a "release" static library for the "release" version of the
application.)
Take a look at your "Library Search Paths" settings. You probably need
to tweak them to point to the Release library locations in the Release
build configuration. From what you describe, you will have different
paths in the Debug and Release build configurations.
- Rush
_______________________________________________
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