build 10.3 dynamic library on MAC 10.5 leopard fail
build 10.3 dynamic library on MAC 10.5 leopard fail
- Subject: build 10.3 dynamic library on MAC 10.5 leopard fail
- From: searockcliff <email@hidden>
- Date: Tue, 29 Apr 2008 15:08:01 +0800 (CST)
Hello,
I want to build 10.3 dynamic library on MAC 10.5 leopard but fail.
I use Xcode 3.0, set the base SDK path for /Developer/SDKs/MacOSX10.3.9.sdk, target to ppc, deployment target to 10.3.
But it gives below error:
"_select$UNIX2003", referenced from:
_testAEB in libCommon.a(netwrp.o)
"_strftime$UNIX2003", referenced from:
_testAAJ in libCommon.a(vintl.o)
"_bind$UNIX2003", referenced from:
_testAED in libCommon.a(netwrp.o)
"_recvfrom$UNIX2003", referenced from:
_testAEF in libCommon.a(netwrp.o)
"_listen$UNIX2003", referenced from:
_testAEG in libCommon.a(netwrp.o)
"_sendto$UNIX2003", referenced from:
_testAEE in libCommon.a(netwrp.o)
ld: symbol(s) not found
If I use the command from Xcode output as below:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1823)
/usr/bin/libtool -arch_only ppc -dynamic -compatibility_version 1 -current_version 1 -install_name /usr/local/lib/libTESTs.dylib -noall_load -o /Users/byang/ClientLibrary/GenesisLocal/Library/build/Library.build/Debug/TESTs.build/Objects-normal/ppc/libTESTs.dylib -L/Users/byang/ClientLibrary/GenesisLocal/Library/build/Debug -L/Users/byang/ClientLibrary/GenesisLocal/Library/../../CommonLib/Common/build/Debug -L/Developer/SDKs/MacOSX10.3.9sdk/usr/lib/gcc/darwin/3.3 -L -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin -L/usr/libexec/gcc/darwin/ppc/3.3/../../.. -filelist /Users/byang/ClientLibrary/GenesisLocal/Library/build/Library.build/Debug/TESTs.build/Objects-normal/ppc/TESTs.LinkFileList -lCommon -framework IOKit -framework CoreFoundation -single_module -syslibroot /Developer/SDKs/MacOSX10.3.9.sdk -lgcc -lSystem -F/Users/byang/ClientLibrary/GenesisLocal/Library/build/Debug -F/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks |
c++filt
/usr/bin/libtool: -static not specified, -L invalid
Undefined symbols:
"_select$UNIX2003", referenced from:
......
ld: symbol(s) not found
It tells that
/usr/bin/libtool: -static not specified, -L invalid
So It cannot find the libraries of 10.3?
How to make the "-L" flag valid?
Thanks!
独栋情境别墅230万起,品鉴热线:60692999 _______________________________________________
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