Re: link error.
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>) |