News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

get MinGW version

Started by MoonKid, May 14, 2008, 02:20:19 PM

Previous topic - Next topic

MoonKid

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?

thomas

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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

MoonKid

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.

stahta01

Set it in the Compiler Settings

"Settings" -> "compiler and debugger"

Toolchain executable tab.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]