Linking static libraries
Linking static libraries
- Subject: Linking static libraries
- From: Andrew Taylor <email@hidden>
- Date: Fri, 3 Mar 2006 10:36:28 -0500
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.)
thanks.
--
---------------------------
Andrew Taylor
Founder/CTO
MacSpeech, Inc.
<http://www.macspeech.com>
_______________________________________________
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