X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2FED1545F2 for ; Sun, 6 Mar 2005 20:53:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69068-01 for ; Sun, 6 Mar 2005 20:53:39 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1856352AA7 for ; Sun, 6 Mar 2005 20:53:38 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id 34so588386rns for ; Sun, 06 Mar 2005 12:53:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=HrePAWP3P88QlBgXsPv3s6e5ZcdJ9tROI2m2irKz8XkrcUmfNml4zhabzKmrbhHFUaAxVVo+qj3v42cEMkIegFYp+2tvsXAwdxq0DNuZt9zyGm7K/nGQRE/Xde3DY88gWeSBhuv4pLBU2TKs6j+OX1cQlap1bTu/PIBFwAGAoSA= Received: by 10.38.179.2 with SMTP id b2mr129158rnf; Sun, 06 Mar 2005 12:53:39 -0800 (PST) Received: by 10.38.179.71 with HTTP; Sun, 6 Mar 2005 12:53:39 -0800 (PST) Message-ID: Date: Sun, 6 Mar 2005 12:53:39 -0800 From: Mike Mills Reply-To: Mike Mills To: pgsql-interfaces@postgresql.org Subject: libpq linker problems Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/24 X-Sequence-Number: 5353 I'm having a problem compiling my C program using libpq I have used the proper linking directories as returned by pg_config both include and library dirs. I have also used -lpq. Still I get errors A3.o(.text+0x1e): In function `main': : undefined reference to `PQconnectdb' A3.o(.text+0x2c): In function `main': : undefined reference to `PQstatus' collect2: ld returned 1 exit status I have the library installed from the debian package ldconfig -v | grep pq libpq.so.3 -> libpq.so.3.1 I'm using libpq-fe.h Thank you