This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Compiling C++ code using libpq-fe.h (PostgreSQL library) in Cygwin
- From: Julia Jacobson <julia dot jacobson at arcor dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 15 Sep 2010 23:50:44 +0200
- Subject: Compiling C++ code using libpq-fe.h (PostgreSQL library) in Cygwin
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.
Thanks in advance,
Julia
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple