• 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: Alastair Houghton <email@hidden>
  • Date: Thu, 10 Apr 2008 11:53:11 +0100

On 10 Apr 2008, at 11:45, Philip Hölzenspies wrote:

On Apr 10, 2008, at 11:12 AM, Alastair Houghton wrote:

$ ld -arch i386 -r -o linked.o libMyListMod.so libMyListTree.so

Is linked.o a PowerPC object file, perchance?

The -o option is used by ld to provide *out*put, i.e. "-o linked.o" tells ld to *produce* the file linked.o. Thus, is it a PowerPC object file? Well, I guess that depends on whether "-arch i386" and i386-only input files are sufficient to tell ld to produce a i386 file.

Sorry, quite right, I hadn't spotted the "-o".

Mind-you, that begs the question, what exactly are you trying to link here? The two things on the right use the extension ".so", so I'm guessing that they are dylibs (.dylib is the standard extension on Mac OS X). It would never even occur to me to try to specify two dylibs and ask the linker to output an ordinary object file, and if I did that, I would expect it to give an error since it doesn't really have anything to link.

That the error message doesn't seem helpful is obviously less than ideal.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ 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>)
 >Re: thin linking: "file is not of required architecture" (From: Alastair Houghton <email@hidden>)
 >Re: 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