Обсуждение: MinGW compilation

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

MinGW compilation

От
Tomasz Szypowski
Дата:
Hello,

I want to build PostgreSQL by MinGW.
Here is the instruction:

after make i receive following error (on windows 10 and 7)

--allow-multiple-definition -Wl,--disable-auto-import  -Wl,--as-needed   -Wl,--stack=4194304 -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.a -lm -lws2_32 -lsecur32 -o postgres.exe
port/pg_shmem.o:pg_shmem.c:(.text+0x456): undefined reference to `GetLargePageMinimum'
regex/regcomp.o:regcomp.c:(.text+0x1a2a): undefined reference to `_ispunct_l'
utils/adt/pg_locale.o:pg_locale.c:(.text+0x14b4): undefined reference to `_create_locale'
utils/adt/pg_locale.o:pg_locale.c:(.text+0x16da): undefined reference to `uselocale'
utils/adt/pg_locale.o:pg_locale.c:(.text+0x16f6): undefined reference to `uselocale'
utils/adt/pg_locale.o:pg_locale.c:(.text+0x17c7): undefined reference to `uselocale'
utils/adt/pg_locale.o:pg_locale.c:(.text+0x17e7): undefined reference to `uselocale'
collect2.exe: error: ld returned 1 exit status
make: *** [postgres] Error 1

I had to downgrade mingwrt to 5.0.1 due to other errors.

Best regards
Thomas Szypowski