Hi there,
we made some custom types (written in C) for PostgreSQL onto a Linux
server.
We need to deploy a Windows server...
The documentation does not talk about a shared library for Windows
(http://www.postgresql.org/docs/8.1/interactive/xfunc-c.html#DFUNC)
I tried to compile its custom types with borland bcc32, with no success:
Does somebody can help me ?
Thanks
Armel (who writes English very bad...)
D:\tmp>bcc32 -I"c:\Program Files\PostgreSQL\8.1\include\server"
-Ic:\Borland\BCC55\Include -I"c:\Program Files\PostgreSQ
L\8.1\include" country.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
country.c:
Warning W8017 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 145: Redefinition of
'SIGUSR1' is not identi
cal
Warning W8017 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 146: Redefinition of
'SIGUSR2' is not identi
cal
Error E2147 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 225: 'pid_t' cannot
start a parameter declarat
ion
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\c.h 70:
Unable to open include file 'strings.h'
Error E2238 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 79: Multiple
declaration for 'shmid_ds'
Error E2344 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 78: Earlier
declaration of 'shmid_ds'
Error E2238 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 94: Multiple
declaration for 'semun'
Error E2344 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 93: Earlier
declaration of 'semun'
Error E2238 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 101: Multiple
declaration for 'sembuf'
Error E2344 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 100: Earlier
declaration of 'sembuf'
Error E2238 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 149: Multiple
declaration for 'timezone'
Error E2344 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 148: Earlier
declaration of 'timezone'
Error E2238 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 157: Multiple
declaration for 'itimerval'
Error E2344 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 156: Earlier
declaration of 'itimerval'
Error E2147 c:\Program
Files\PostgreSQL\8.1\include\server\pg_config_os.h 225: 'pid_t' cannot
start a parameter declarat
ion
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\c.h 98:
Unable to open include file 'libintl.h'
Error E2176 c:\Program Files\PostgreSQL\8.1\include\server\c.h 291: Too
many types in declaration
Error E2176 c:\Program Files\PostgreSQL\8.1\include\server\c.h 294: Too
many types in declaration
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 16:
Unable to open include file 'pwd.h'
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 17:
Unable to open include file 'netdb.h'
Error E2221 c:\Program Files\PostgreSQL\8.1\include\server\port.h 252:
Macro argument syntax error
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 307:
Unable to open include file 'netinet/in.h'
Error E2209 c:\Program Files\PostgreSQL\8.1\include\server\port.h 308:
Unable to open include file 'arpa/inet.h'
Error E2040 c:\Program Files\PostgreSQL\8.1\include\server\port.h 318:
Declaration terminated incorrectly
Error E2451 country.c 267: Undefined symbol '__func__' in function
country_in
Error E2140 country.c 271: Declaration is not allowed here in function
country_in
Error E2140 country.c 272: Declaration is not allowed here in function
country_in
Error E2228 country.c 272: Too many error or warning messages in
function country_in
*** 26 errors in Compile ***