News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

which compiler to use.

Started by johnt, April 21, 2022, 03:32:25 AM

Previous topic - Next topic

johnt

I am trying to set up the installation and run in windows the codeblocks idle.
I can't figure which compiler to use to do this?
John Tankersley
john_tnkrsly@yahoo.com

Aronimo

I recommend MinGW, tho I don't think it will make such a difference what compiler u use, unless you want to develop for win32, in which case you MUST use visual c++. Otherwise, i'd say to go MinGW with the codeblocks setup.

AndrewCot

There are a number of different "Windows" compilers that C::B supports. Some very well and others not so well. Some of the compilers are obsolete and some are current / bleeding edge.
The Windows compiler collection I would recommend is MSYS2, https://www.msys2.org/ .
The MSYS2 eco system has a number of different compilers that are supported by C::B. The main two MSYS2 supported compilers by C::B are:

       
  • MinGW32
  • MinGW64
These other MSYS2 compilers are supported, but the LLDB debugger is currently not supported:

       
  • Clang32
  • Clang64
These other MSYS2 compilers are not supported out of the box by C::B as you will need to configure them via the compiler plugin and some devs have reported issues with them, but I have not used them so I cannot comment on the issues raised:

       
  • ucrt64
The main reason I recommend MSYS2 for use with C::B is that the MSYS2 eco system has a huge number of packages available for it.
As for which MSYS2 compiler to use for your case and which libraries are applicable I have no idea as the info supplied is not allot.
I would also recommend using the latest nightly build as it has far better support for the different MSYS2 compilers than C::B 20.03 has.


BlueHazzard

An other compiler is https://www.winlibs.com/
but as AndrewCot said, i would stick to msys2 and the MinGW64 package

PB

FWIW, chapters  3.1.-3.3 and chapters 4.2 and 4.3 of my guide have step-by-step instructions on how to install mingw64-based GCC distribution from MSYS2 and set it in Code::Blocks.
[url="https://github.com/PBfordev/wxpbguide"]https://github.com/PBfordev/wxpbguide[/url]