Re: C interface - Mailing list pgsql-ports

From Peter Eisentraut
Subject Re: C interface
Date
Msg-id Pine.LNX.4.30.0108241344260.677-100000@peter.localdomain
Whole thread Raw
In response to C interface  (Mario Fernandez <mfernandez@sia.es>)
List pgsql-ports
Mario Fernandez writes:

> /tmp/ccIKrZnW.o: In function `exit_nicely':
> /tmp/ccIKrZnW.o(.text+0xe): undefined reference to `PQfinish'
> /tmp/ccIKrZnW.o: In function `main':
> /tmp/ccIKrZnW.o(.text+0x6d): undefined reference to `PQsetdbLogin'
> /tmp/ccIKrZnW.o(.text+0x81): undefined reference to `PQstatus'

You need to put -lpq on your compilation line to pull in the library.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-ports by date:

Previous
From: Mario Fernandez
Date:
Subject: C interface
Next
From: "Marc G. Fournier"
Date:
Subject: Majordomo being upgraded ...