Unzip the file attached and try building it.
It might work; but, I will likely have to give you directions on how to setup the MSys2 MinGW GCC Compiler in Code::Blocks.
Note: To me it is clear how to setup Code::Blocks; but, newbies have a lot of problems.
I am now an expert on setting up GCC based compilers in C::B.
Edit: Link to C::B Project without the adding of main.c to it. https://github.com/stahta01/MSys2_CodeBlocks_Projects/tree/master/gtk (https://github.com/stahta01/MSys2_CodeBlocks_Projects/tree/master/gtk)
Edit2: Packages install command for 32 bit; change "i686" to "x86_64" for 64 bit.
pacman -S --needed --asdeps mingw-w64-i686-gcc mingw-w64-i686-gtk3
Tim S.
32 Bit Compiler Settings
Installation Directory: C:\msys32\mingw32
C Compiler: i686-w64-mingw32-gcc.exe
C++ Compiler: i686-w64-mingw32-g++.exe
Linker for Dyn. Libs: i686-w64-mingw32-g++.exe
Linker for Static Libs: ar.exe
64 Bit Compiler Settings
Installation Directory: C:\msys64\mingw64
C Compiler: x86_64-w64-mingw32-gcc.exe
C++ Compiler: x86_64-w64-mingw32-g++.exe
Linker for Dyn. Libs: x86_64-w64-mingw32-g++.exe
Linker for Static Libs: ar.exe