FROM : Jerry LeVan
DATE : Sat Oct 16 05:14:00 2004
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
>
DATE : Sat Oct 16 05:14:00 2004
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
>
| Related mails | Author | Date |
|---|---|---|
| Jerry LeVan | Oct 16, 02:46 | |
| Jerry LeVan | Oct 16, 05:14 | |
| Scott Stevenson | Oct 16, 09:06 |






Cocoa mail archive

