Re: MinGW-W64 compile error - Mailing list pgsql-general

From Leonardo M. Ramé
Subject Re: MinGW-W64 compile error
Date
Msg-id 5639C91E.9020802@griensu.com
Whole thread Raw
In response to Re: MinGW-W64 compile error  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: MinGW-W64 compile error
Re: MinGW-W64 compile error
List pgsql-general
El 04/11/15 a las 00:05, Tom Lane escribió:
> "=?UTF-8?Q?Leonardo_M._Ram=c3=a9?=" <l.rame@griensu.com> writes:
>> Hi, I'm trying to build the client library of PostgreSql 9.3.x using
>> this version of MinGW's gcc:
>> ...
>> g++  -DFRONTEND -I../../src/include -I./src/include/port/win32
>> -DEXEC_BACKEND  "-I../../src/include/port/win32" -DBUILDING_DLL  -c -o
>> relpath.o relpath.c
>
> Why is it invoking g++ and not gcc?

I don't know. I just installed MinGW, then ./configure, maybe there's an
error in the configure script?.

>
>> relpath.c: In function 'int forkname_chars(const char*, ForkNumber*)':
>> relpath.c:55:15: error: invalid conversion from 'int' to 'ForkNumber'
>> [-fpermissive]
>>     for (forkNum = 1; forkNum <= MAX_FORKNUM; forkNum++)
>> relpath.c:55:51: error: no 'operator++(int)' declared for postfix '++'
>> [-fpermissive]
>>     for (forkNum = 1; forkNum <= MAX_FORKNUM; forkNum++)
>
> The second of these definitely comes from trying to compile C code as C++,
> and I think the first does too.
>
>             regards, tom lane
>
>




pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_archivecleanup not deleting anything?
Next
From: M Tarkeshwar Rao
Date:
Subject: Query regarding