Linking error on Ubuntu 18.04

Started by BrianMcrae, 17 April 2020, 21:06:25


I can't get the tgui-builder to link.  It's related to strings.

Undefined references to  sf::String::operator  std:__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const


I've seen this error a couple times. Although I've never really found out the exact cause, it seems like some mismatch in libraries.
Make sure that the SFML version used by your project is the same as the one installed on your PC. Do you maybe have SFML installed from the package manager while also having another version on your PC? If you build SFML or TGUI yourself, did you install it by running "make install"?

Edit: Since this is about the gui-builder and not your own project, make sure SFML_DIR used when configuring TGUI points to the same SFML version than you have installed.