• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Link against a ".la" file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link against a ".la" file


  • Subject: Re: Link against a ".la" file
  • From: Jonathan Taylor <email@hidden>
  • Date: Fri, 10 Mar 2006 09:29:58 +0000

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...

.la is a libtool file. It just tells libtool how to deal with the file. Check the .libs directory in the same directory as the .la file. You should find libgsl.a in there that you can link against.


- Steve

Thanks everyone for the explanations. libgsl.a is indeed in the ".libs" directory. The reason I missed this is that it is of course an invisible directory(!?).


For the record, it seems that a more accessible copy of the library is meant to be installed in /usr/local/lib but for some reason the "make install" command didn't work on my system. Ah well, never mind - I've found the invisible copy now.

Cheers
Jonny
_______________________________________________
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


References: 
 >Link against a ".la" file (From: Jonathan Taylor <email@hidden>)
 >Re: Link against a ".la" file (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: problem with shell script Build Phase
  • Next by Date: Re: problem with shell script Build Phase
  • Previous by thread: Re: Link against a ".la" file
  • Next by thread: Re: Link against a ".la" file
  • Index(es):
    • Date
    • Thread