Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: barsandcat on January 09, 2010, 06:57:21 pm

Title: SetupIncludeDirs fails to detect gcc4+
Post by: barsandcat on January 09, 2010, 06:57:21 pm
Ubuntu 9.10
svn build, rev 6062

When using precompiled headers with option "Generate PCH in object output dir", in g++ command line object output dir always included as "-Iobj -I-"
despite gcc version is "gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1"

Error seems to be if function CompilerMINGWGenerator::SetupIncludeDirs at line 39:

bool IsGcc4 = m_VerStr.Left(1).IsSameAs(_T("4"));
Title: Re: SetupIncludeDirs fails to detect gcc4+
Post by: MortenMacFly on January 09, 2010, 09:45:14 pm
Error seems to be if function CompilerMINGWGenerator::SetupIncludeDirs at line 39:
What does
Code
gcc --version
output on the console exactly?
Title: Re: SetupIncludeDirs fails to detect gcc4+
Post by: barsandcat on January 10, 2010, 11:47:24 am
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Title: Re: SetupIncludeDirs fails to detect gcc4+
Post by: Jenna on January 10, 2010, 12:29:37 pm
Since svn r 5616 version string checking is blocked on wxWidgets 2.9.0 and above, but also on non windows platforms.

I'm not sure whether it's correct or not (I mean the non-windows blocking).

I will send a PM to the dev who did this, to ask, whether this can be reverted, so only wxWidgets 2.9 is blocked.
Title: Re: SetupIncludeDirs fails to detect gcc4+
Post by: Biplab on January 10, 2010, 05:15:07 pm
It should be fixed now in trunk. Thanks for highlighting this bug.