SFML community forums

Help => General => Topic started by: Gnomoron on May 05, 2020, 03:20:14 pm

Title: SFML, Code::Blocks 20.03 and mingw-32
Post by: Gnomoron on May 05, 2020, 03:20:14 pm
Hello everyone!

I installed Code::Blocks 20.03 and configured the mingw-w64 (to compile a 64-bit version of the application) and mingw-32 (to compile a 32-bit version of the application) compilers for it manually. After that I downloaded the SFML 2.5.1 binaries for mingw-32 (GCC 7.3.0 MinGW (DW2) - 32-bit) and mingw-w64 (GCC 7.3.0 MinGW (SEH) - 64-bit) and configured the appropriate build targets (win32-debug, win32-release, win64-debug, win64-release; SFML is used with dynamic linking). Using both variants of compilers and libraries, compilation of the project is completed successfully. All build options are launched from the IDE, but when I launch the 32-bit version of the application with a simple double click, the application warns that libgcc_s_dw2-1.dll is missing. I tried to just add this library to the directory with the executable file, but got the error 0xc000007b. Please help me. Thank you in advance.
Title: Re: SFML, Code::Blocks 20.03 and mingw-32
Post by: eXpl0it3r on May 05, 2020, 04:08:00 pm
0xc000007b is often an indication of mixing 64-bit and 32-bit application.

Also don't forget if you use the MinGW version provided by Code::Blocks 20.03, then you're not compatible with the binaries on the download page, as they updated the compiler to MinGW 8.something (notice the must match 100%).
Title: Re: SFML, Code::Blocks 20.03 and mingw-32
Post by: Gnomoron on May 07, 2020, 10:03:41 am
Thanks! I installed the necessary versions of MinGW and it worked.