• 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: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY
  • From: Robert Sesek <email@hidden>
  • Date: Mon, 7 Aug 2006 19:20:37 -0700


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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY
      • From: "Stuart A. Malone" <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>)

  • Prev by Date: Trying to understand executable bundle loading
  • Next by Date: Intel Math Kernel Library
  • Previous by thread: Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY
  • Next by thread: Re: Random /usr/lib/libsqlite3.0.dylib Linking in Release Mode ONLY
  • Index(es):
    • Date
    • Thread