Error compiling postgresql UDT in visual studio 2008

Поиск
Список
Период
Сортировка
От Brijesh Shrivastav
Тема Error compiling postgresql UDT in visual studio 2008
Дата
Msg-id 5774D66D5EC83645A99B3A905527BB710786125D@zipwire.esri.com
обсуждение исходный текст
Список pgsql-general

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

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_locks "at-a-glance" view
Следующее
От: Garry Saddington
Дата:
Сообщение: Re: Losing data