• 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: Linking problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking problem...


  • Subject: Re: Linking problem...
  • From: Jerry LeVan <email@hidden>
  • Date: Fri, 15 Oct 2004 23:14:00 -0400

It appears that the linker will choose a dylib
over an archive lib.

I got around the problem by moving the dylibs out
of the directory containing libpq.a and then
was able to get the libpq to be staticly linked
into the image.

The only one I could get libpq.a into the build
process was to drag the file onto the project.
Then open panel in the add file to project would
not let me choose the static library.

I guess I will need to keep a copy of the static
lib in some other directory...


Jerry

On Oct 15, 2004, at 8:46 PM, Jerry LeVan wrote:

I have a cocoa application that I link against a
postgresql library.

There appear to be two libraries to choose from
libpq.a and libpg3.2.dylib

I picked libpq.a in Xcode but otool shows that
the compiled program will use libpg3.2.dylib

Is there a way I can have the linker do a static
link for this one library? ( ie use libpq.a )

(I am currently using ver 8.0.0b3 for postgresql
but most of the world is using version 7.x.x)

Thanks...

Jerry


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Linking problem...
      • From: Scott Stevenson <email@hidden>
References: 
 >Linking problem... (From: Jerry LeVan <email@hidden>)

  • Prev by Date: Linking problem...
  • Next by Date: Linking error
  • Previous by thread: Linking problem...
  • Next by thread: Re: Linking problem...
  • Index(es):
    • Date
    • Thread