pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Hagerty <matthew@wolfepub.com>
To: pgsql-interfaces@postgresql.org
Subject: Static link with libpq
Date: Tue, 21 Jul 1998 16:16:30 -0400
Message-ID: <3.0.3.32.19980721161630.00697780@wolfepub.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <3.0.3.32.19980721161630.00697780@wolfepub.com>
Permalink:  ../3.0.3.32.19980721161630.00697780@wolfepub.com/
Also on:    postgresql.org/message-id/3.0.3.32.19980721161630.00697780@wolfepub.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: matthew@wolfepub.com
  Subject: Re: Static link with libpq
  In-Reply-To: <3.0.3.32.19980721161630.00697780@wolfepub.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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