Re: Compiling C++ code using libpq-fe.h (PostgreSQL library) in Cygwin

2010-09-15 Thread Greg Chicares
On 2010-09-15 21:50Z, Julia Jacobson wrote: > > When trying to compile C++ code using PostgreSQL's libpq-fe.h by the command > "g++ > -I/usr/include -L/lib -lpq my_program.cpp", I get error messages like > "undefined > reference to '_PQconnectdb'. Assuming that '-lpq' provides the unresolved sy

Compiling C++ code using libpq-fe.h (PostgreSQL library) in Cygwin

2010-09-15 Thread Julia Jacobson
Hello everybody out there using Cygwin, When trying to compile C++ code using PostgreSQL's libpq-fe.h by the command "g++ -I/usr/include -L/lib -lpq my_program.cpp", I get error messages like "undefined reference to '_PQconnectdb'. Could anyone help me to find a way to solve this problem. Than