Author Topic: SetupIncludeDirs fails to detect gcc4+  (Read 5348 times)

Offline barsandcat

  • Single posting newcomer
  • *
  • Posts: 2
SetupIncludeDirs fails to detect gcc4+
« 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"));

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: SetupIncludeDirs fails to detect gcc4+
« Reply #1 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline barsandcat

  • Single posting newcomer
  • *
  • Posts: 2
Re: SetupIncludeDirs fails to detect gcc4+
« Reply #2 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: SetupIncludeDirs fails to detect gcc4+
« Reply #3 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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: SetupIncludeDirs fails to detect gcc4+
« Reply #4 on: January 10, 2010, 05:15:07 pm »
It should be fixed now in trunk. Thanks for highlighting this bug.
Be a part of the solution, not a part of the problem.