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

Author Topic: SFML 2.4.1 Linux sf::String compilation error  (Read 1124 times)

0 Members and 2 Guests are viewing this topic.

safirion

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2.4.1 Linux sf::String compilation error
« 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 :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: SFML 2.4.1 Linux sf::String compilation error
« Reply #1 on: November 04, 2016, 05:09:00 pm »
And how did you update to SFML 2.4.1?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

safirion

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML 2.4.1 Linux sf::String compilation error
« Reply #2 on: November 04, 2016, 05:13:52 pm »
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
« Last Edit: November 04, 2016, 05:19:36 pm by safirion »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: SFML 2.4.1 Linux sf::String compilation error
« Reply #3 on: November 04, 2016, 05:22:19 pm »
And where di you get the old folders from and where the new folders?

You probably just have to recompile SFML with your compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

safirion

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML 2.4.1 Linux sf::String compilation error
« Reply #4 on: November 04, 2016, 05:24:38 pm »
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 ;)


safirion

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML 2.4.1 Linux sf::String compilation error
« Reply #5 on: November 04, 2016, 05:49:12 pm »
Ok, when I compile myself, my project compile...  ;)

Very strange but... Ok :)

Thank you very much :)

 

anything