mingw-cross-env-list
[Top][All Lists]
Advanced

[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 12:46:20 -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 12:37 PM, Mark Brand wrote:
> 
>>> 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.
> 
> Hi René,
> 
> Just wanted to mention that you should probably be using the
> development version of mingw-cross-env from mercurial for this. It
> has .pc files for Qt and dbus (which I think you need).  Are you
> using "i686-pc-mingw32-pkg-config"?

I'm already using the latest changes from the Hg repository.  Yes, I
already have built the latest dbus (and libevent) which adds its (their)
.pc files and the Qt project uses the correct pkg-config with the
correct path.

I found the root of my problem, the project's .pro file had a generic
addition (i.e. somebody put an INCLUDEPATH) which added the
/usr/include.  The other problem, g++ 4.5.2 searching the headers in
different order, I haven't researched.
-- 
René Berber




reply via email to

[Prev in Thread] Current Thread [Next in Thread]