• 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: How to use dynamic library in the Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use dynamic library in the Xcode


  • Subject: Re: How to use dynamic library in the Xcode
  • From: Wang Yongqing <email@hidden>
  • Date: Thu, 26 Jun 2008 22:20:20 -0700 (PDT)

Hello,

Thanks for your reply!

Yes, I set the Other Linker Flags to "/usr/local/lib"
and Header Search Paths is "/usr/local/include/"
Library Search Paths is "/usr/local/lib"

I have added the /usr/local/lib/libpcsclite.1.0.0.dylib into my project.

Whether I have some items that I don't know or miss in the Xcode setting?

Best regards!
yongqing


----- Original Message ----
From: Chris Espinosa <email@hidden>
To: Wang Yongqing <email@hidden>
Cc: email@hidden
Sent: Friday, June 27, 2008 12:19:49 PM
Subject: Re: How to use dynamic library in the Xcode


On Jun 26, 2008, at 7:22 PM, Wang Yongqing wrote:
Ld /Users/apple/Desktop/test/SPETest/tdstest/build/Release/tdstest normal i386
    cd /Users/apple/Desktop/test/SPETest/tdstest
    /Developer/usr/bin/gcc-4.0 -o /Users/apple/Desktop/test/SPETest/tdstest/build/Release/tdstest -L/Users/apple/Desktop/test/SPETest/tdstest/build/Release -L/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib -L/usr/local/pcsc/lib -F/Users/apple/Desktop/test/SPETest/tdstest/build/Release -filelist /Users/apple/Desktop/test/SPETest/tdstest/build/tdstest.build/Release/tdstest.build/Objects-normal/i386/tdstest.LinkFileList -lpcsclite.1.0.0 -arch i386 -dynamiclib -mmacosx-version-min=10.5 /usr/local/lib -isysroot /Developer/SDKs/MacOSX10.5.sdk
ld: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib, can't map file, errno=22
collect2: ld returned 1 exit status

It appears that you have the directory /usr/local/lib appearing where a file should be.  Did you enter it into Other Linker Flags, or add a folder reference to that directory into your Link Libraries and Frameworks build phase?

(To other posters: please note the excellent information Wang provided that helps us narrow down his problem immediately)

Chris


 _______________________________________________
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: How to use dynamic library in the Xcode
      • From: Stefan Werner <email@hidden>
  • Prev by Date: Re: Error for FSReadFork
  • Next by Date: Re: How to use dynamic library in the Xcode
  • Previous by thread: Re: How to use dynamic library in the Xcode
  • Next by thread: Re: How to use dynamic library in the Xcode
  • Index(es):
    • Date
    • Thread