• 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: Can XC link to CW Mach-O libs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can XC link to CW Mach-O libs?


  • Subject: Re: Can XC link to CW Mach-O libs?
  • From: "Mark D. Gerl" <email@hidden>
  • Date: Mon, 05 Jan 2004 18:26:48 -0500

On 1/5/04 2:40 PM, Bryan Pietrzak probably wrote:

> Make sure your CW static libraries are named properly: libFoo.a
>
> And make sure you export the symbols properly. I use an .exp file and
> add the underscore to each symbol in there (_FooFunction)

Sheesh...I didn't know you had to have the "lib" prefix AND the ".a" suffix
in order for XC to even try to link with this file.  I also had the .exp
file set up correctly.

NOW, I get a linker error message that indicates that CW9 is not generating
the same type of Mach-O format that XC:

    ld /Volumes/.../Project/libFoo.a bad magic number (not a Mach-O file)

And, yes, I'm using the Mach-O linker in CW!

--
Mark D. Gerl, email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Can XC link to CW Mach-O libs? (From: Bryan Pietrzak <email@hidden>)

  • Prev by Date: Re: cvs/ssh
  • Next by Date: Re: Building For OS 10.1, 10.2, and 10.3
  • Previous by thread: Re: Can XC link to CW Mach-O libs?
  • Next by thread: XCode 1.1 and "Cocoa programming for MacOSX" problem
  • Index(es):
    • Date
    • Thread