Hi!
I am trying to compile a C function for windows using VS 2008 Express and I getting this errors
pg2.c
c:\program files\postgresql\9.0\include\server\pg_config_os.h(203) : error C2011: 'timezone' : 'struct' type redefinition
c:\program files\postgresql\9.0\include\server\pg_config_os.h(203) : see declaration of 'timezone'
c:\program files\postgresql\9.0\include\server\pg_config_os.h(212) : error C2011 : 'itimerval' : 'struct' type redefinition
c:\program files\postgresql\9.0\include\server\pg_config_os.h(212) : see declaration of 'itimerval'
c:\program files\postgresql\9.0\include\server\utils/elog.h(118) : error C2365: 'errcode' : redefinition; previous definition was 'typedef'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\crtdefs.h(560) : see declaration of 'errcode'
The command that I used to compile is this
cl /I "\Program Files\postgreSQL\9.0\include" /I "\Program Files\postgreSQL\9.0\include\server" /I "\Program Files\postgreSQL\9.0\include\server\port\win32" /c "D:\exte_c\pg2.c"
Any cluees ort any ideas ?
I am using PG 9.0.6
*-------------------------------------------------------*
*-Edwin Quijada
*-Developer DataBase
*-JQ Microsistemas
*-Soporte PostgreSQL
*-www.jqmicrosistemas.com
*-809-849-8087
*-------------------------------------------------------*