Re: Link against a ".la" file
Re: Link against a ".la" file
- Subject: Re: Link against a ".la" file
- From: Chris Ridd <email@hidden>
- Date: Thu, 09 Mar 2006 20:18:06 +0000
- Thread-topic: Link against a ".la" file
On 9/3/06 7:34, Rush Manbert <email@hidden> wrote:
> 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.
No, .la files are produced by GNU libtool. When you link using GNU libtool
against a .la file, GNU libtool reads the .la file (it is text) to find out
exactly what to do.
The actual .dylib will usually be in a subdirectory called .lib.
Don't confuse GNU's libtool with Apple's libtool.
Cheers,
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