Author Topic: get MinGW version  (Read 4450 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
get MinGW version
« 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?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: get MinGW version
« Reply #1 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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: get MinGW version
« Reply #2 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: get MinGW version
« Reply #3 on: May 14, 2008, 07:25:23 pm »
Set it in the Compiler Settings

"Settings" -> "compiler and debugger"

Toolchain executable tab.

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