Re: Link against a ".la" file
Re: Link against a ".la" file
- Subject: Re: Link against a ".la" file
- From: Rush Manbert <email@hidden>
- Date: Thu, 09 Mar 2006 11:34:39 -0800
Jonathan Taylor wrote:
I've strayed into unix-y areas of OS X that I'm not familiar with, and
I wonder if anyone can help. I'm trying to get Xcode to link against a
".la" file. I've installed GSL (Gnu Scientific Library) and built it
according to the instructions (from the command line). This has created
a file libgsl.la which I think is what I need to link my code against.
Unfortunately Xcode doesn't recognise that file extension, and treats
the file as a text file when I add it to my project.
Can anyone shed any light on exactly what a '.la' extension means, and
how I can add it to the project? I'm vaguely aware of '.a' as an object
code archive, but I've never come across this one. Doesn't seem to be
anything in the list archives about this...
It sounds like you're trying to link against a static library (archive).
If that's true, then I would expect that the command line make (i.e.
make all) would have created a file called libgsl.a, which is the static
archive. You need to add that to your Xcode project rather than the
*.la. If the make didn't produce a static archive, then you may need to
specify different configuration flags. Try cd-ing to the directory where
you installed the distribution and typing ./configure -help
If you're trying to use a dylib then you're doing something out of my
experience. Sorry.
- 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