Re: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type
Дата
Msg-id 22919.1480962249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type  (Andrea spanu <spanu_andrea@yahoo.it>)
Список pgsql-novice
Andrea spanu <spanu_andrea@yahoo.it> writes:
> I'am began with a server side program on Windows with MinGW, and after linked everything I get this warning
'PG_PRINTF_ATTRIBUTE'is an unrecognized format function type' , 

There's something messed up about your installation then.  My first guess
is that you're trying to use MinGW's gcc to build an extension, but
against a server that was built with MSVC and therefore the pg_config.h
file is meant for use with MSVC not gcc.  That's not going to work.
You should build the server and your extension with the same toolchain.

It may be that all the other issues you report trace to that same cause,
but in any case you should fix that first and then see what problems
remain.

            regards, tom lane


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

Предыдущее
От: Andrea spanu
Дата:
Сообщение: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type
Следующее
От: "Bee.Lists"
Дата:
Сообщение: Fresh Start