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