SFML community forums
Help => General => Topic started by: Brikinhos 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):
(https://i.ibb.co/vwHQ9tw/Capturados.png)
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.
-
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.