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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zedong

Pages: [1]
1
Graphics / Re: Undefined reference from loadFromFile
« on: December 14, 2016, 02:07:18 pm »
I've tried both with and without -std=c++11 with the same result unfortunaly.

2
Graphics / Re: Undefined reference from loadFromFile
« on: December 14, 2016, 01:00:36 pm »
Using the gcc TDM 4.9.2 linked from http://www.sfml-dev.org/download/sfml/2.4.1/.


3
Graphics / Undefined reference from loadFromFile
« 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.

Pages: [1]
anything