User forums > Help

How to make sure that projects selects gcc compiler not g++?

(1/2) > >>

smallB:
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.

MortenMacFly:

--- Quote from: smallB on December 01, 2012, 05:42:40 pm ---How can I make sure that gcc will get selected not g++?

--- End quote ---
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.

smallB:
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?

scarphin:
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?

smallB:
#scarphin no, I'm using gcc 4.7.1 by tdm

Navigation

[0] Message Index

[#] Next page

Go to full version