Code::Blocks Forums

User forums => Help => Topic started by: smallB on December 01, 2012, 05:42:40 pm

Title: How to make sure that projects selects gcc compiler not g++?
Post by: smallB 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.
Title: Re: How to make sure that projects selects gcc compiler not g++?
Post by: MortenMacFly 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.
Title: Re: How to make sure that projects selects gcc compiler not g++?
Post by: smallB 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?
Title: Re: How to make sure that projects selects gcc compiler not g++?
Post by: scarphin 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?
Title: Re: How to make sure that projects selects gcc compiler not g++?
Post by: smallB on December 01, 2012, 07:15:31 pm
#scarphin no, I'm using gcc 4.7.1 by tdm
Title: Re: How to make sure that projects selects gcc compiler not g++?
Post by: Herald of Omega 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.