News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

SetupIncludeDirs fails to detect gcc4+

Started by barsandcat, January 09, 2010, 06:57:21 PM

Previous topic - Next topic

barsandcat

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"));

MortenMacFly

Quote from: barsandcat on January 09, 2010, 06:57:21 PM
Error seems to be if function CompilerMINGWGenerator::SetupIncludeDirs at line 39:
What does
gcc --version
output on the console exactly?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

barsandcat

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.

Jenna

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.

Biplab

It should be fixed now in trunk. Thanks for highlighting this bug.
Be a part of the solution, not a part of the problem.