Re: Include files for static VC libpq.lib

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Include files for static VC libpq.lib
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE4766BE@algol.sollentuna.se
обсуждение исходный текст
Ответ на Include files for static VC libpq.lib  ("Edin Kadribasic" <edink@emini.dk>)
Ответы Re: Include files for static VC libpq.lib  (Edin Kadribasic <edink@emini.dk>)
Список pgsql-hackers-win32
>> >Hi,
>> >
>> >I'm upgrading libpq bundled in PHP win32 distribution. I have
>> >no problem
>> >compiling static libpq.lib using bundled makefiles and
>msvc++. However
>> >getting the needed include files is bit more difficult. So far
>> >I have been
>> >installing pgsql on a linux box, took its include files and replaced
>> >pg_config.h with the one used for msvc++ build. Is there an
>> >easier way to do
>> >that? Adding some sort of "make install" would be handy as well.
>>
>> If you build with MingW you will have access to more or less
>everything
>> that the unix builds has. Such as the "make install" command...
>
>Yes, I'm aware of that. However that doesn't change the
>situation much. I
>still need to build  VC lib using msvc++ and then make the
>whole postgresql
>with mingw. At least linux build/install is faster :) I was
>looking for "make
>install" in VC makefile which would make include dir with
>neccessary .h files
>in it.

There is no such support in the VC Makefiles. It's only supported in the
MingW build.

FWIW, you can build the VC libs from the DEF file - we do so in the
installer. You just run

LINK /LIB /MACHINE:x86 /def:libpqdll.def /out:libpq.lib /name:libpq.dll

//Magnus

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

Предыдущее
От: "Paul Kirschner"
Дата:
Сообщение: Re: Invalid username specified
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Invalid username specified