delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/15/17:51:04

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 <julia DOT jacobson AT arcor DOT de>
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
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019