Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: MoonKid on May 14, 2008, 02:20:19 pm

Title: get MinGW version
Post by: MoonKid on May 14, 2008, 02:20:19 pm
There are more then one gcc and mingw32-gcc binarys inside my Code::Blocks directory.
How can I found out which one of them are exactly used while building a project?
Title: Re: get MinGW version
Post by: thomas on May 14, 2008, 05:59:02 pm
Either by invoking gcc with --help or reading the manual and learning that -dumpversion will output the version, as will --version.
Alternatively, you can use -v which will output gcc's version and build info, and will keep compiling (the others will stop after dumping information).
Title: Re: get MinGW version
Post by: MoonKid on May 14, 2008, 06:01:08 pm
Of course does -v putout the version info.

But how can I get it in C::B. I have multible installations of MinGW and need to know while build inside Code::Blocks which MinGW version is used.
Title: Re: get MinGW version
Post by: stahta01 on May 14, 2008, 07:25:23 pm
Set it in the Compiler Settings

"Settings" -> "compiler and debugger"

Toolchain executable tab.

Tim S