Re: Using isysroot
Re: Using isysroot
- Subject: Re: Using isysroot
- From: "Sean McBride" <email@hidden>
- Date: Mon, 29 Oct 2007 11:13:52 -0400
- Organization: Rogue Research
On 10/29/07 10:42 PM, Bryan Christianson said:
>On 10.5 I am getting a link error when compiling a simple hello.c
>program against the 10.4 SDK.
>This problem also occurs in the simple test programs that are used in
>complex configure scripts and is a bit of show-stopper.
>
>What other options should I be specifying for this to work?
>
>
>#include <stdio.h>
>
>int main() {
> printf("hello world\n");
> return(0);
>}
>
>$ gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -o hello hello.c
>ld: library not found for -lcrt1.10.5.o
>collect2: ld returned 1 exit status
You need to set the MACOSX_DEPLOYMENT_TARGET. Try the following before
invoking gcc:
export MACOSX_DEPLOYMENT_TARGET=10.4
or pass -mmin-macosx-version to gcc.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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