From: Mike Mills <mikejmills@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: libpq linker problems
Date: Sun, 6 Mar 2005 12:53:39 -0800
Message-ID: <bdbdc3540503061253517178a6@mail.gmail.com> (raw)
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
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: mikejmills@gmail.com
Subject: Re: libpq linker problems
In-Reply-To: <bdbdc3540503061253517178a6@mail.gmail.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