News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

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

Started by smallB, December 01, 2012, 05:42:40 PM

Previous topic - Next topic

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++?
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: [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]

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


Herald of Omega

#5
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.