Re: Linking against static libpq using Visual C++

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Linking against static libpq using Visual C++
Дата
Msg-id AANLkTi=hyCTYjLQDEEpVA774vmPg-LTZmQJwc_TAEg--@mail.gmail.com
обсуждение исходный текст
Ответ на Linking against static libpq using Visual C++  (Julia Jacobson <julia.jacobson@arcor.de>)
Ответы Re: Linking against static libpq using Visual C++  (Julia Jacobson <julia.jacobson@arcor.de>)
Список pgsql-general
On Sun, Feb 27, 2011 at 15:40, Julia Jacobson <julia.jacobson@arcor.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/

В списке pgsql-general по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: PG on two nodes with shared disk ocfs2 & drbd
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: ERROR: invalid byte sequence for encoding "UTF8": 0xc35c