MSYS2 is different to MinGW32/64 that is included in some of the C::B 20.03 installers, but they both use the GCC compiler (I am trying to KISS for the newbies). I find the MSYS2 environment has allot more packages and is easier to install the packages than the MinGW32/64 environment.
To install MSYS2 you need to download the installer from the following page:
https://www.msys2.org/Then you need to install other packages using the
pacman package manager. You can search for MSYTS2 packages on the
https://packages.msys2.org/search page.
The following is part of a batch file I use to install my MSYS2 x64 environment after running the installer from the
https://www.msys2.org/ page. The command are run within the C:\msys64\msys2.exe shell:
pacman -Syu
@rem GCC TOOLCHAIN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake msys2-runtime-devel
@rem SDL2 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-freetype mingw-w64-x86_64-zziplib mingw-w64-x86_64-libpng
@rem UTILS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pacman -S mingw-w64-x86_64-libzip zip unzip mingw-w64-x86_64-diffutils
@rem pacman -S mingw-w64-x86_64-cmake -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-glade
@rem pacman -S python mingw-w64-x86_64-python mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-pandas mingw-w64-x86_64-python-xlrd
@rem QT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5 mingw-w64-x86_64-qt5-static mingw-w64-x86_64-qt-installer-framework
@rem UPDATE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@rem update packages or "pacman -Syuu" for bad database or QT missing entry in dll.
pacman -Syu
GSL package exists for MSYS2. To install it you can run the following command:
There are other MSYS2 GSL packages.
If after installing MSYS2 C::B cannot find the compiler you will need to:
1. Change the directory in the "settings->compiler" menu then the "toolchain executables" tab settings to C:\MSYS64 (assuming you are using x64 and have not changed the default directory).
2. Change the program files to remove the "mingw32-" prefix.
3. Setup the debugger in the "settings->debugger"
4. Link the debugger to the compiler via the debugger option in the "settings->compiler" menu then the "toolchain executables" tab
If the above is too hard or complex give my unofficial C::B installer a go, info on it and links are in the following post:
https://forums.codeblocks.org/index.php/topic,24592.0.html