X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_SUB_OBFU_Q0,TW_BP,TW_LP,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-12.arcor-online.net BF639263F7 Message-ID: <4C913FB4.90007@arcor.de> Date: Wed, 15 Sep 2010 23:50:44 +0200 From: Julia Jacobson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Compiling C++ code using libpq-fe.h (PostgreSQL library) in Cygwin Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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