SFML community forums
Help => General => Topic started by: thephysicist on January 17, 2020, 04:09:21 pm
-
Hello,
I'm using Linux Mint, installed TGUI via the manual on the tutorial page (https://tgui.eu/tutorials/0.8/linux/) and get this from my cmake file
-- Found SFML 2.4.2 in /usr/include
-- Found TGUI 0.8.6 in /usr/lib/x86_64-linux-gnu/cmake/TGUI
-- Configuring done
-- Generating done
When I try to get the example program (https://tgui.eu/tutorials/0.8/minimal-code/), I get the following errors:
undefined reference to `tgui::Gui::Gui(sf::RenderWindow&)'
undefined reference to `tgui::Gui::handleEvent(sf::Event)'
undefined reference to `tgui::Gui::draw()'
I tried compiling with C++17 and C++14.
-
Are you linking with tgui?
In cmake that would be like "target_link_libraries(your-target PRIVATE tgui)".