Categorized | News

Compiling Postgres 7.2. under CYGWIN

Posted on 28 March 2002 by Demian Turner

I´ve found a detailed explanation in the poor postgres page on how to compile postgres 7.2. under CYGWIN (emulation of UNIX environment in Windows) but it doesn´t works at all. Ever is reported the same error when compile from source:

make -C ../utils dllinit.o
make[2]: Entering directory `/postgresql-7.0.2/src/utils’
gcc -I../include -I../backend -I/usr/local/include -O2
-I/usr/local/include -Wall -Wmissing-prototypes -Wmissing-declarations -c
-o dllinit.o dllinit.c
dllinit.c:49: conflicting types for `DllMain’
dllinit.c:44: previous declaration of `DllMain’
dllinit.c:49: conflicting types for `_cygwin_dll_entry’
dllinit.c:49: previous declaration of `_cygwin_dll_entry’
dllinit.c:81: conflicting types for `DllMain’
dllinit.c:49: previous declaration of `DllMain’
make[2]: *** [dllinit.o] Error 1
make[2]: Leaving directory `/postgresql-7.0.2/src/utils’
make[1]: *** [../utils/dllinit.o] Error 2
make[1]: Leaving directory `/postgresql-7.0.2/src/backend
make: *** [all] Error 2

Does any know how to compile Postgres under CYGWIN?

Bookmark and Share

3 Comments For This Post

  1. minombre Says:

    It will work if you have C++ installed on your windows system.

  2. MarioIzquierdo Says:

    Here is the url where you could find the file psql.exe wholly compiled with visual C++:

    http://www.hokkaido.postgresql.jp/download/pub/binaries/7.1/win32-native/psql/

    If you don´t know japanesse is time to learn or buy Microsoft Visual C++ 6.0, my dear donk, is very easy to compile postgres under windows.

  3. Anonymous Says:

    If you have already any doubt wether Postgres runs on other windows platforms aside NT or not checkout this article: http://www.phpbuilder.com/mail/php-windows/2001062/0076.php and you will see how runs too on Windows Me.

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook