Code::Blocks Forums

User forums => Help => Topic started by: johnt on April 21, 2022, 03:32:25 am

Title: which compiler to use.
Post by: johnt on April 21, 2022, 03:32:25 am
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
Title: Re: which compiler to use.
Post by: Aronimo on April 21, 2022, 03:37:43 am
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.
Title: Re: which compiler to use.
Post by: AndrewCot on April 21, 2022, 04:48:28 am
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:These other MSYS2 compilers are supported, but the LLDB debugger is currently not supported: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:
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.

Title: Re: which compiler to use.
Post by: BlueHazzard on April 21, 2022, 09:26:42 am
An other compiler is https://www.winlibs.com/
but as AndrewCot said, i would stick to msys2 and the MinGW64 package
Title: Re: which compiler to use.
Post by: PB on April 21, 2022, 05:48:52 pm
FWIW, chapters  3.1.-3.3 and chapters 4.2 and 4.3 of my guide (https://github.com/PBfordev/wxpbguide) have step-by-step instructions on how to install mingw64-based GCC distribution from MSYS2 and set it in Code::Blocks.