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

Author Topic: String::String(std::string, std::locale) not in library?  (Read 4831 times)

0 Members and 1 Guest are viewing this topic.

cpainterwakefield

  • Newbie
  • *
  • Posts: 7
    • View Profile
String::String(std::string, std::locale) not in library?
« on: August 30, 2018, 11:30:43 pm »
I'm getting the following linker error with SFML 2.5.0 under linux (using the 64-bit package provided):

g++ -o image_editor main.o image_editor.o drawing_window.o -pthread -Llib  -lsfml-graphics -lsfml-window -lsfml-system -lpthread
drawing_window.o: In function `drawing_window::open()':
/home/cpainter/teaching/csci262/web/projects/image_editor/linux/drawing_window.cpp:29: undefined reference to `sf::String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&)'

I can see that the appropriate constructor is listed in the header file (and the compiler doesn't complain), but the linker can't seem to find the matching symbol.

The code I'm trying to build worked under a previous build of SFML, FWIW.