Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Using isysroot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using isysroot



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


-- Bryan Christianson email@hidden


_______________________________________________ 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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.