Linking error on Ubuntu 18.04

  • 1 Replies
  • 78 Views
Linking error on Ubuntu 18.04
« on: 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


*

texus

  • *****
  • 1544
    • View Profile
    • Texus's Blog
Re: Linking error on Ubuntu 18.04
« Reply #1 on: 17 April 2020, 22:32:29 »
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.
« Last Edit: 17 April 2020, 22:36:50 by texus »