Обсуждение: Re: postgresql build on MS Visual studio 20

Поиск
Список
Период
Сортировка

Re: postgresql build on MS Visual studio 20

От
Anass HAMMEDI
Дата:
Is building libpq.dll supported. & how? plz.


-----Message d'origine-----
De : Magnus Hagander [mailto:mha@sollentuna.net]
Envoye : jeudi 19 aout 2004 12:30
A : Anass HAMMEDI; pgsql-hackers-win32@postgresql.org
Objet : RE: [pgsql-hackers-win32] postgresql build on MS Visual studio
2003


Building of the backend under Visual Studio is not supported - it
requires mingw gcc.

You can build libpq.dll and psql.exe only from VS.

//Magnus

> -----Original Message-----
> From: Anass HAMMEDI [mailto:Anass.HAMMEDI@asais.fr]
> Sent: Thursday, August 19, 2004 12:14 PM
> To: pgsql-hackers-win32@postgresql.org
> Subject: [pgsql-hackers-win32] postgresql build on MS Visual
> studio 2003
>
> Has anyone tried to build postgresql sources on Visual Studio
> .NET 2003.
> or at least just libpq.dll.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
>

Re: postgresql build on MS Visual studio 20

От
Andrew Francis
Дата:
Anass HAMMEDI wrote:
> Is building libpq.dll supported. & how? plz.

Open a command prompt with the Visual Studio environment set up (generally
Start Menu -> Programs -> Visual Studio -> VS Tools -> VS Command Line).

Go to the src\interfaces\libpq directory inside the postgres distribution.

Run "nmake /f Makefile.win32 [options]".

Available options are documented in Makefile.win32.

If you run into compiler or link errors relating to
rename/unlink/pgrename/pgunlink functions, you may wish to try using the
most recent CVS snapshot, or read the recent "libpq build problem with
<io.h> on MS VC++" thread from this mailing list.

Hope this helps.

- Andrew