• 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
Adding .a files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding .a files


  • Subject: Adding .a files
  • From: Thomas Hauk <email@hidden>
  • Date: Thu, 6 Mar 2008 13:57:44 -0800

I had a problem with Xcode 2.5 (and now with 3.0, under Leopard) where I was building boost libraries using bjam on the command line, copying them to a repository, and then trying to add them to my Xcode project (application). When I'd run my app, I'd get a dynamic linking error that it wasn't able to find the Boost.Thread .dylib, which is odd, because I had added the Boost.Thread .a.

On a hunch, I Got Info on the .a file, and discovered that it was being seen as an "archive .ar" file by Xcode. As soon as I changed the File Type to "compiled.mach-o.objfile", the dynamic linking errors went away. Not sure if this has bit anyone else (I did a quick search of this list and didn't see anything similar), but I think adding a .a file to Xcode should default to "compiled.mach-o.objfile" and not "archive .ar".

T

--
Peter Griffin: Brian, there's a message in my Alpha Bits. It says OOOOOO!
Brian Griffin: Peter, those are Cheerios.
-- Family Guy


_______________________________________________
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


  • Follow-Ups:
    • Re: Adding .a files
      • From: "Mark Wagner" <email@hidden>
  • Prev by Date: [ADMIN] Monthly Reminder: How to Ask for Help on Xcode-Users
  • Next by Date: Re: Adding .a files
  • Previous by thread: [ADMIN] Monthly Reminder: How to Ask for Help on Xcode-Users
  • Next by thread: Re: Adding .a files
  • Index(es):
    • Date
    • Thread