Search Postgresql Archives

Error compiling postgresql UDT in visual studio 2008

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

 

We are in the process of moving our development environment

to visual studio 2008 and as a part of that process I tried to build 

our postgresql extended UDT in that environment. I ran into typedef

redefinition error because visual studio 2008 header file crtdefs.h

typedef  errcode as an int whereas postgres header files (elog.h) defines

a function by the same name. Following is the error I got:

 

\\aisak\8.3\include\server\utils/elog.h(105) : error C2365: 'errcode' : redefinition; previous definition was 'typedef'

        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\crtdefs.h(548) : see declaration of 'errcode'

 

Has anyone else run into this? Any ideas how to handle it?

 

Thanks,

Brijesh

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux