Re: Linking against static libpq using Visual C++

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Julia Jacobson <julia(dot)jacobson(at)arcor(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Linking against static libpq using Visual C++
Date: 2011-02-27 15:18:23
Message-ID: AANLkTi=hyCTYjLQDEEpVA774vmPg-LTZmQJwc_TAEg--@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Feb 27, 2011 at 15:40, Julia Jacobson <julia(dot)jacobson(at)arcor(dot)de> wrote:
> Dear PostgreSQL community,
>
> When trying to compile c++ code including libpq against the static version
> libpq.lib, Visual Studio 2010 gives me the following errors:

<snip>

> I've built my libpq.lib with Visual Studio and added the include directories
> and libraries of PostgreSQL to the additional dependencies of my visual
> studio project, but there still seem to be missing libraries.
> How can I find out which libraries I need to add?

Did you build your own static version of libpq, or use the one that
comes with the installer? If the latter, then it's probably that it's
the wrong version of visual studio.

Those imports are from the Visual C runtimes, so that's what you're
missing for those - or using different versions.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2011-02-27 15:47:10 Re: ERROR: invalid byte sequence for encoding "UTF8": 0xc35c
Previous Message Andrew Sullivan 2011-02-27 14:59:35 Re: PG on two nodes with shared disk ocfs2 & drbd