[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] g++ 4.5.2 is pulling system headers from the
From: |
René Berber |
Subject: |
Re: [Mingw-cross-env-list] g++ 4.5.2 is pulling system headers from the wrong place |
Date: |
Wed, 19 Jan 2011 10:56:11 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 |
On 1/19/2011 2:34 AM, Tony Theodore wrote:
> On 19 January 2011 12:36, René Berber wrote:
>>
>> I just found this, the new g++ 4.5.2 fails where the old 4.4.0 was doing
>> it right.
>>
>> The problem is obvious, 4.5.2 is including header /usr/include/wchar.h
>
> [...]
>
>> -I'../../usr/i686-pc-mingw32/include/QtDBus' -I'/usr/include' -I'..'
>
> How are you generating those compiler flags? The "-I'/usr/include'" is
> present in both and it's likely some other reason that gcc 4.4.0 isn't
> failing also. See if not including that directory helps.
Good catch! Yes that causes the problem; seems that 4.5.2 changes the
order of searching for headers, that's why 4.4.0 does find the correct one.
The parameters are generated by Qt (i686-pc-mingw32-qmake) with the help
of pkg-config (no problem on the .pc files), I'm looking into qmake.conf
to see how the include got there.
--
René Berber