SFML community forums
Help => General => Topic started by: safirion on November 04, 2016, 05:07:59 pm
-
Hi,
Since I update the SFML lib from 2.4.0 to 2.4.1, I have the following error when I compile :
sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Rect<int> const&)
undifined refererence to « sf::String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&) »
I think there is a problem with cast from std::string to sf::String, nope ?
Thank you by advance :)
-
And how did you update to SFML 2.4.1?
-
By removing old folders "include" and "lib" and extracts new folders at same place ;)
(I don't use the standard path for sfml lib)
Part of my Makefile :
http://imgur.com/QNjzlqC
-
And where di you get the old folders from and where the new folders?
You probably just have to recompile SFML with your compiler.
-
I find the old archive and the new at the same place :
http://www.sfml-dev.org/files/SFML-2.4.0-linux-gcc-64-bit.tar.gz
http://www.sfml-dev.org/files/SFML-2.4.1-linux-gcc-64-bit.tar.gz
Ok, I will compile SFML 2.4.1 and I give you my returns ;)
-
Ok, when I compile myself, my project compile... ;)
Very strange but... Ok :)
Thank you very much :)