• 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
build 10.3 dynamic library on MAC 10.5 leopard fail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: build 10.3 dynamic library on MAC 10.5 leopard fail
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: What is a project?
  • Next by Date: Re: Linking Errors for all vecLib.h calls
  • Previous by thread: Re: Apple Doc says that PROJECT_NAME, TARGET_NAME Won't Reflect Changes
  • Next by thread: Re: build 10.3 dynamic library on MAC 10.5 leopard fail
  • Index(es):
    • Date
    • Thread