Received: from firebat.wolfepub.com (firebat.wolfepub.com [206.250.193.44]) by hub.org (8.8.8/8.7.5) with ESMTP id QAA25198 for ; Tue, 21 Jul 1998 16:09:50 -0400 (EDT) Received: from ricecake.fastnet0.net (niu-ppp204.triton.net [209.172.4.204]) by firebat.wolfepub.com (8.9.0/8.9.0) with SMTP id QAA22184 for ; Tue, 21 Jul 1998 16:08:12 -0400 (EDT) Message-Id: <3.0.3.32.19980721161630.00697780@wolfepub.com> X-Sender: matthew@wolfepub.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Tue, 21 Jul 1998 16:16:30 -0400 To: pgsql-interfaces@postgresql.org From: Matthew Hagerty Subject: Static link with libpq Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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