error C2011 in Visual Studio 2012

Поиск
Список
Период
Сортировка
От Anderson C. Carniel
Тема error C2011 in Visual Studio 2012
Дата
Msg-id BAY167-W108B0BD00470DD40A9AB974B41A0@phx.gbl
обсуждение исходный текст
Ответы Re: error C2011 in Visual Studio 2012  (Andrew Dunstan <andrew@dunslane.net>)
Re: error C2011 in Visual Studio 2012  (Craig Ringer <craig@2ndQuadrant.com>)
Список pgsql-hackers
Hi,

I'm trying to build a. dll file to extend the postgres server with C functions. I'm using visual studio 2012 to build the dll, and PostgreSQL 9.2. I imported all directories postgres "\include\server*" But I'm having the errors:

error C2011: 'timezone': 'struct' type redefinition

error C2011: 'itimerval': 'struct' type redefinition

In the file *pg_confi_os.h* at line 205 and 214

I tried this solution but had no success.

How to solve this problem?


I posted the same question at stackoverflow (http://stackoverflow.com/questions/14538652/error-c2011-timezonestruct-type-redefinition-postgres), no answers there.


Best regards,


[]s

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Performance Improvement by reducing WAL for Update Operation
Следующее
От: Gurjeet Singh
Дата:
Сообщение: Re: [PERFORM] pgbench to the MAXINT