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

How to use dynamic library in the Xcode


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

Hello all,

Now I want to use the dynamic library in my Xcode 3.0 project. I have added the *.dylib in my project and the source code can be compiled successfully. But it is failed in the process of linking. 

The dynamic library is installed in the directory "/usr/local/lib".

Following is the error information:

Building target “tdstest” of project “tdstest” with configuration “Release”


Checking Dependencies


CompileC build/tdstest.build/Release/tdstest.build/Objects-normal/i386/tdstest.o /Users/apple/Desktop/test/SPETest/tdstest/../tdstest.c normal i386 c com.apple.compilers.gcc.4_0

    cd /Users/apple/Desktop/test/SPETest/tdstest

    /Developer/usr/bin/gcc-4.0 -x c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/apple/Desktop/test/SPETest/tdstest/build/tdstest.build/Release/tdstest.build/tdstest.hmap -F/Users/apple/Desktop/test/SPETest/tdstest/build/Release -I/Users/apple/Desktop/test/SPETest/tdstest/build/Release/include -I/usr/local/include/PCSC -I/Users/apple/Desktop/test/SPETest/tdstest/build/tdstest.build/Release/tdstest.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/apple/Desktop/test/SPETest/tdstest/../tdstest.c -o /Users/apple/Desktop/test/SPETest/tdstest/build/tdstest.build/Release/tdstest.build/Objects-normal/i386/tdstest.o


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


Any one could give me some ideas or suggestions that I will appreciate!


Best wishes!

yongqing


 _______________________________________________
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: Chris Espinosa <email@hidden>
  • Prev by Date: Re: NDA, iPhone, etc.
  • Next by Date: Re: adding multiple assets (resources) to a project
  • Previous by thread: Re: Interface Builder - Deleting Menus -- SOLVED
  • Next by thread: Re: How to use dynamic library in the Xcode
  • Index(es):
    • Date
    • Thread