• 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: link error.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link error.


  • Subject: Re: link error.
  • From: Peter O'Gorman <email@hidden>
  • Date: Wed, 01 Oct 2008 21:20:12 -0500

tom lee wrote:
>
>> cat test.c
> #include <stdio.h>
> int main()
> {
> printf("hello world\n");
> }
>> gcc -c test.c -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386   -arch ppc64 -arch x86_64
>> gcc -arch ppc -arch i386 -arch ppc64 -arch x86_64 -sysliboot /Developer/SDKs/MacOSX10.5.sdk -o test test.o

Use -isysroot for the link step too, or quote -syslibroot with -Wl, it
is a linker option, not a compiler one.
'-Wl,-sysliboot,/Developer/SDKs/MacOSX10.5.sdk'

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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

References: 
 >link error. (From: "tom lee" <email@hidden>)

  • Prev by Date: Re: Per-file Warnings suppression?
  • Next by Date: Re: Per-file Warnings suppression?
  • Previous by thread: link error.
  • Next by thread: Re: link error.
  • Index(es):
    • Date
    • Thread