• 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: thin linking: "file is not of required architecture"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thin linking: "file is not of required architecture"


  • Subject: Re: thin linking: "file is not of required architecture"
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 10 Apr 2008 09:04:08 -0700


On Apr 10, 2008, at 3:03 AM, Philip Hölzenspies wrote:

$ ld -r -o linked.o libMyListMod.so libMyListTree.so
ld: warning -arch not specified
ld: warning in libMyListMod.so, file is not of required architecture
ld: warning in libMyListTree.so, file is not of required architecture

What's in these .so files? What created them? Try the 'file' command, which will tell you whether they are indeed linkable binaries.


If they're shared libraries (in which case, the Mac OS X convention for file extension is '.dylib", not ".so"), then they should probably follow, rather than precede, your object files on the link line. And there don't seem to be any object code input files (.o or .a). And the output of the linker is normally either a static archive (.a) or a dynamic library (.dylib), or the executable for an app or command-line tool.

So let's start from "What are you really trying to do?"

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


  • Follow-Ups:
    • Re: thin linking: "file is not of required architecture"
      • From: Philip Hölzenspies <email@hidden>
References: 
 >thin linking: "file is not of required architecture" (From: Philip Hölzenspies <email@hidden>)

  • Prev by Date: Re: thin linking: "file is not of required architecture"
  • Next by Date: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Previous by thread: Re: thin linking: "file is not of required architecture"
  • Next by thread: Re: thin linking: "file is not of required architecture"
  • Index(es):
    • Date
    • Thread