Compilation of Windows PostgreSQL 9.5 64-bit C-language functions

I want to create my own C-extensions for PostgreSQL 9.5 64 bit on Windows.

I would like to build them with MinGW-w64, if possible, so that my build chain is as clean as possible. But I use the EnterpriseDB PostgreSQL assembly, and the MinGW build crashes it.

It would also be nice if there was another free compiler that I can use in this commercial project.

I know how to get this to work with Visual Studio 2003 Express, but it doesn’t seem like a solution due to license issues.

+4
source share
2 answers

Addendum to the main answer

, , , C- Mingw Cygwin, , , - , , , , Windows , ;

Unix- :

Unix-

PGXS Unix- . :

make PG_CONFIG=path_to_postgresql_installation/bin/pg_config make PG_CONFIG=path_to_postgresql_installation/bin/pg_config install

PG_CONFIG, pg_config PostgreSQL. PostgreSQL root. Windows MinGW Cygwin. Windows , ; .

PG_CONFIG =... "make", , make .


, . . , , , .

Postgresql Windows build Visual Studio, EnterpriseDB ( ). .

( . PostgreSQL Postgres Enterprise Manager - EnterpriseDB (PDF))

, Mingw-w64.

, , :

. , . , , .

, Postgresql Linux, (, GCC) .

=)

+5

@Swith PostgreSQL Visual Studio , :

Windows MinGW Cygwin. Windows , ; .

PG_CONFIG =... "make", , make .

?

PostgreSQL MinGW - , .



, , .

C - , Cygwin - .



, Visual Studio 2003 Express, - .

?


, Visual Studio 2015 Community Edition ( Express), @Simon Mourier.

Express Community - , , Community Edition :

:
Visual Studio : , .

:
, , Visual Studio. ( , 250 $1 . ), , , .

. Visual Studio Community.

+2

All Articles