Re: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrea spanu <spanu_andrea(at)yahoo(dot)it>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type
Date: 2016-12-05 18:24:09
Message-ID: 22919.1480962249@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Andrea spanu <spanu_andrea(at)yahoo(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bee.Lists 2016-12-06 11:10:21 Fresh Start
Previous Message Andrea spanu 2016-12-05 11:19:54 'PG_PRINTF_ATTRIBUTE' is an unrecognized format function type