On Aug 6, 2006, at 17:24, Chris Espinosa wrote:
On Aug 6, 2006, at 5:00 PM, Robert Sesek wrote: I cannot figure out for the life of me why this is happening. I removed the CoreData framework as I thought that could be adding in the library. I've opened up my project.pbxproj in BBEdit and looked for any traces of the library or flag and there is none.
[...]
It would help to see the Linker invocation from the full build transcript to see a list of what libraries are being linked in.
Well I've now narrowed the problem down to this:
When I stick my static library (libsqlite3.a) in the Frameworks section, Xcode does the inexplicable and magically adds -lsqlite3 into the Ld phase. When I remove that file, though, that flag goes away from the transcript. I can't quite figure out why this is.
Yet when I add in the the proper search paths for both the headers and the library into the project "Search Path" settings, I only get undefined symbol errors.
I don't understand why this linking thing isn't working. This is the transcript from using my search paths:
Ld /Users/rsesek/Projects/Tindex/build/SQLiteLibrary.build/Release/SQLiteLibrary.build/Objects-normal/ppc/SQLiteLibrary normal ppc cd /Users/rsesek/Projects/Tindex /usr/bin/gcc-4.0 -o /Users/rsesek/Projects/Tindex/build/SQLiteLibrary.build/Release/SQLiteLibrary.build/Objects-normal/ppc/SQLiteLibrary -L/Users/rsesek/Projects/Tindex/build/Release -L/Users/rsesek/Projects/Tindex/sqlite/lib -F/Users/rsesek/Projects/Tindex/build/Release -filelist /Users/rsesek/Projects/Tindex/build/SQLiteLibrary.build/Release/SQLiteLibrary.build/Objects-normal/ppc/SQLiteLibrary.LinkFileList -framework Cocoa -arch ppc -Wl,-single_module -compatibility_version 1 -current_version 1 -install_name @executable_path/../Frameworks/SQLiteLibrary.framework/Versions/A/SQLiteLibrary -Wl,-Y,1455 -dynamiclib -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
And it is linking to /Useres/rsesek/Projects/Tindex/sqlite/lib where I have the library compiled.
|