• 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: Using isysroot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using isysroot (From: Bryan Christianson <email@hidden>)

  • Prev by Date: ld: can't add line info to anonymous symbol __text@0
  • Next by Date: Re: GC and backward compatibility?
  • Previous by thread: Re: Using isysroot
  • Next by thread: [Fwd: Re: Using isysroot]
  • Index(es):
    • Date
    • Thread