> Oh, can you please try with > > gcc -I$(pg_config --includedir) -L$(pg_config --libdir) > test_postgres.c -lpq
Putting -lpq after the .c file name fixes it. But it'll still be a problem for Makefiles that append -lpq to LDFLAGS. That worked on natty but at a minimum Makefiles will have to be updated for oneiric and beyond. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to postgresql-9.1 in Ubuntu. https://bugs.launchpad.net/bugs/1068150 Title: programs do not link against libpq on precise Status in “postgresql-9.1” package in Ubuntu: Incomplete Bug description: The following trivial program will not link on precise, but did on natty and does on Debian stable. #include <stdlib.h> #include <libpq-fe.h> // build command: // gcc -I$(pg_config --includedir) -L$(pg_config --libdir) -lpq test_postgres.c int main( int argc, char** argv ) { PQfinish(NULL); exit(1); } To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-9.1/+bug/1068150/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp