SFML community forums

Help => General => Topic started by: Brikinhos on January 19, 2019, 10:26:11 pm

Title: Problems with CodeBlocks and SFML
Post 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.
Title: Re: Problems with CodeBlocks and SFML
Post by: eXpl0it3r 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.