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".
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