Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML, Code::Blocks 20.03 and mingw-32  (Read 2350 times)

0 Members and 2 Guests are viewing this topic.

Gnomoron

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML, Code::Blocks 20.03 and mingw-32
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: SFML, Code::Blocks 20.03 and mingw-32
« Reply #1 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%).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gnomoron

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML, Code::Blocks 20.03 and mingw-32
« Reply #2 on: May 07, 2020, 10:03:41 am »
Thanks! I installed the necessary versions of MinGW and it worked.

 

anything