Author Topic: How to make sure that projects selects gcc compiler not g++?  (Read 7594 times)

Offline smallB

  • Almost regular
  • **
  • Posts: 193
How to make sure that projects selects gcc compiler not g++?
« on: December 01, 2012, 05:42:40 pm »
Guys, I'm trying to build POCO lib with codeblocks, according to:
http://gluescript.sourceforge.net/?q=node/22
Last bullet there states (I did successfully all previous steps):
"Make sure the Foundation project selects the gcc compiler, not the g++ compiler because zlib compilation fails with g++."

How can I make sure that gcc will get selected not g++?
Thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How to make sure that projects selects gcc compiler not g++?
« Reply #1 on: December 01, 2012, 06:19:43 pm »
How can I make sure that gcc will get selected not g++?
In the compiler setup, setup gcc.exe as compiler for C++, too.

If this conflicts with other project of yours, make a copy of the GCC compiler and name it "GCC, C only" or alike. Then use this compiler with the projects targets, where needed.
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 smallB

  • Almost regular
  • **
  • Posts: 193
Re: How to make sure that projects selects gcc compiler not g++?
« Reply #2 on: December 01, 2012, 07:01:20 pm »
Hi Morten

Thanks for your reply. Now I'm getting error:
C:\...\poco-1.5.0\Foundation\src\Environment_VX.cpp|41|fatal error: envLib.h: No such file or directory|

Any idea why? And how to fix it?

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Re: How to make sure that projects selects gcc compiler not g++?
« Reply #3 on: December 01, 2012, 07:07:26 pm »
There is also the warning:
"Make sure you use the latest version of MinGW! Don't use the version that is shipped with Codelite or Code::Blocks"
Are you?

Offline smallB

  • Almost regular
  • **
  • Posts: 193
Re: How to make sure that projects selects gcc compiler not g++?
« Reply #4 on: December 01, 2012, 07:15:31 pm »
#scarphin no, I'm using gcc 4.7.1 by tdm

Herald of Omega

  • Guest
Re: How to make sure that projects selects gcc compiler not g++?
« Reply #5 on: May 02, 2014, 12:40:04 am »
Files ending in _VX.cpp are only needed for VxWorks embedded devices.
Files ending in _WINCE.cpp are only needed for Windows CE.
I simply removed all the files that were giving errors from the project and it compiled without trouble.
« Last Edit: May 02, 2014, 04:09:43 am by Herald of Omega »