• 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
Resolve library conflict
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resolve library conflict


  • Subject: Resolve library conflict
  • From: John Velman <email@hidden>
  • Date: Wed, 7 Oct 2009 11:34:46 -0700
  • Mail-followup-to: John Velman <email@hidden>, Xcode Users List <email@hidden>

I want to use a .o file produced by Haskell using the Haskell to C Foreign
Function interface within an Xcode project.  The Haskell .o file depends on
a bunch of Haskell libraries, which are all in
/Library/Frameworks/Versions/Current/usr/lib or one of its subdirectories.

Adding these to the project, everything seems to link, _except_, one
required library is the Haskell version of libgmp.a

When I don't add libgmp.a, I get undefined symbols that are all defined int
the Haskell libgmp.a.

When I do add libgmp.a, I get the  message (here edited to multilines for
readability:
----
ld warning: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/libgmp.dylib,
file is not of required architecture

----

Apparently, the fact that there is a libgmp.dylib in "the usual place" is
preventing Xcode from looking in the library I specifically add.  This is
the case even when I try copying the Haskell library into my project
folder, or when the target linked library info shows path for this library
as

  /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/libgmp.a

I'm out of my depth here.  I've tried to find a way around this in Ch 21
(and elsewhere) in Fritz Anderson's "XCode 3 Unleashed", but can't find it.

I'm still with Xcode 3.1.3, on OS X 10.5.8, 2.4GHz Intel Core 2 Duo.

Thanks,

John Velman


 _______________________________________________
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: Resolve library conflict
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Debug libraries for 10.6.1
  • Next by Date: Re: Memory corruption when going from 10.5 to 10.6
  • Previous by thread: Re: Memory corruption when going from 10.5 to 10.6
  • Next by thread: Re: Resolve library conflict
  • Index(es):
    • Date
    • Thread