Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY




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.

Robert Sesek

Email: email@hidden

www.iris-studios.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY (From: Robert Sesek <email@hidden>)
 >Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.