pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Static link with libpq 2+ messages / 1 participants [nested] [flat]
* Static link with libpq @ 1998-07-21 20:16 Matthew Hagerty <matthew@wolfepub.com> 0 siblings, 0 replies; 2+ messages in thread From: Matthew Hagerty @ 1998-07-21 20:16 UTC (permalink / raw) To: pgsql-interfaces Greetings, Is it possible to compile a C program that uses libpg as a static program? I tried the obvious: # gcc -I../pgsql/include -L../pgsql/lib -static -o test test.c -lpq This is my error: ld: No reference to __DYNAMIC I'm using gcc-2.7.2.1 on FreeBSD-2.2.6-Release and PG-6.3.2 Any insight would be greatly appreciated. Also, please to cc me, as I am not yet on the list. Thanks, Matthew ^ permalink raw reply [nested|flat] 2+ messages in thread
* Static link with libpq @ 1998-07-22 14:33 Matthew Hagerty <matthew@wolfepub.com> 0 siblings, 0 replies; 2+ messages in thread From: Matthew Hagerty @ 1998-07-22 14:33 UTC (permalink / raw) To: pgsql-interfaces Greetings, Is it possible to link a c program as 'static' using libpq? If so, could someone please give a quick example? pgsql-6.3.2, freebsd-2.2.6-Release, gcc-2.7.2.1. Thanks, Matthew ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-07-22 14:33 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 1998-07-21 20:16 Static link with libpq Matthew Hagerty <matthew@wolfepub.com> 1998-07-22 14:33 Static link with libpq Matthew Hagerty <matthew@wolfepub.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox