link error.
link error.
- Subject: link error.
- From: "tom lee" <email@hidden>
- Date: Wed, 1 Oct 2008 19:02:37 -0700
Hello,
I have Mac os x 10.5 installed to compile a simple C code.
Not sure why the link failed?
Also, if I use /Developer/SDKs/MacOSX10.4u.sdk, does it mean that the
compiled code can run in
10.4 Tiger?
> 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
ld: in /Developer/SDKs/MacOSX10.5.sdk, can't map file, errno=22 for
architecture i386
collect2: ld returned 1 exit status
ld: in /Developer/SDKs/MacOSX10.5.sdk, can't map file, errno=22 for
architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/O7/O79GMx0NHuOD9awHDVL2fk+++4E/-Tmp-//ccFsHvfx.out (No
such file or directory)
Thanks for the help in advance.
_______________________________________________
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