Search Postgresql Archives

Statically linking against libpq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'll start off by saying that I am a compiling novice, so bear with me
please.

I have a library which is being plugged into a game server to provide
extra functionality.  The library is currently linked against libpq like
so `gcc -shared -lpq`.  It compiles and runs great as long as people
have libpg installed.  I'm trying to find a way to remove this
dependency so I googled around and found that `-shared` needed to be `-
static` and to add `-lcrypt` also.  However, the linker is now failing
and tossing me lots of "undefined reference" messages to things like
"krb5_free_context" (I've attached the full log).  

I'd appreciate any suggestions on getting a statically linked library
against libpq.  I'm currently compiling on a Fedora Core 3 machine with
gcc-2.95.3 against the postgresql-libs-7.4.6-1.FC3.2 package.

Thanks in advace,

~ Matthew


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux