• 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: Xcode - Other Linker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode - Other Linker


  • Subject: Re: Xcode - Other Linker
  • From: Drew McCormack <email@hidden>
  • Date: Fri, 14 Nov 2003 11:18:21 +0100

On Nov 13, 2003, at 6:32 PM, Kent Glenn wrote:

Under PB I use to put my lib I wanted to statically link in under
"Linker Settings/Other Mach-O Linker Flags". I would have something
like this: /usr/local/lib/libsqlite.a

Now under Xcode, I can't figure out how to accomplish the same thing. I
did a "Info" on the target and found the build settings. I even found
"Other linker flags" under the build tab. I tried just putting the lib
to link in, but that didn't work. I thought maybe this needed to pass
flags off to ld, so I tried "-lsqlite" and "-llibsqlite.a", but neither
one worked. I even tried to put "-L/usr/local/lib/" for the lib path,
but that didn't help.

Any ideas? Am I going about this the wrong way?
Can't you just add the static library to you project? Just select 'Add Framework..." from the "Project" menu, and select the libsqlite.a. The rest should be handled by Xcode.

Drew
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Compiling assembler files
  • Next by Date: "XcU7B104:" - Why I need to include libc++.a with Xcode 1.1 ?
  • Previous by thread: Compiling assembler files
  • Next by thread: "XcU7B104:" - Why I need to include libc++.a with Xcode 1.1 ?
  • Index(es):
    • Date
    • Thread