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

Author Topic: Problems with CodeBlocks and SFML  (Read 3352 times)

0 Members and 1 Guest are viewing this topic.

Brikinhos

  • Newbie
  • *
  • Posts: 8
    • View Profile
Problems with CodeBlocks and SFML
« on: January 19, 2019, 10:26:11 pm »
Hi all, I tried to configure CodeBlocks with SFML. I followed the guide and I got an error when I execute a SFML program (sorry, it's in Spanish but I think you can understand it):



The program is compiled without problem.

I configured CodeBlocks with SFML before and it worked, but I don't know what can be the problem now, I used GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit and TDM 5.1.0 (32-bit).

Thanks in advance.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Problems with CodeBlocks and SFML
« Reply #1 on: January 22, 2019, 08:16:34 pm »
Usually an indication that you may have C++11 active, but the provided SFML version doesn't seem to have been built with C++11. The ABI of std::string changes and makes it incompatible.

Best option is to build SFML from source with CMake.
Alternatively, you can also switch to a different MinGW compiler with a match SFML SDK as linked on the download page.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/