pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Libpq linker error
Date: Wed, 11 Feb 2004 17:29:58 +0100
Message-ID: <20040211162958.GE94664@xs4all.nl> (raw)
In-Reply-To: <20040211154604.41382.qmail@web41204.mail.yahoo.com>
References: <20040211154604.41382.qmail@web41204.mail.yahoo.com>

On Wed, Feb 11, 2004 at 07:46:04AM -0800, Daniel Gerardo Lucero Baylon wrote:
> I compiled PostgreSQL 7.3.4 libpq for Win 32 using VC++ 7 compiler.
> 
> Compiler generates a libpq.lib file. Build a simple C program which opens and
> closes a database connection.
> 
> When try to link object program and libpq library, following error occurs:
> 
> ibpq.lib(fe-connect.obj) : error LNK2019: unresolved external symbol
> __imp__strdup referenced in function _PQconnectStart

Looks like you may not be linking your program against the standard
system libraries.  In this example, PQconnectStart is who's complaining
about a missing function--it's not the function being complained about.


Jeroen




view thread (5+ messages)  latest in thread

Message-ID: <20040211162958.GE94664@xs4all.nl>
Permalink:  ../20040211162958.GE94664@xs4all.nl/
Also on:    postgresql.org/message-id/20040211162958.GE94664@xs4all.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jtv@xs4all.nl, daniel_baylon@yahoo.com
  Subject: Re: Libpq linker error
  In-Reply-To: <20040211162958.GE94664@xs4all.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox