3
« on: December 14, 2016, 12:35:01 pm »
Hello, I just recently tried to compile my project as a windows .exe.
Linking the sfml lib worked fine, and the test project from the tutorial page worked fine, however, when I try to compile my project, it complains about every single loadFromFile is undefined.
Using gcc 9.4.2 with SFML 2.4.2 in Code::Blocks.
The message I get is:
C:\Users\Kristian\Desktop\project\vk\Menu.cc|202|undefined reference to `sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Rect<int> const&)'|
Thanks in advance.
Edit: It compiles just fine if I comment out every single loadFromFile, but obviously that just leaves me with a blank window.