Having compiled a small program using g++-4.8
g++-4.8 -c main.cpp
and trying to link it with SFML files, using g++-4.8 as well,
g++-4.8 -o main.o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
I've encountered such problem:
main.cpp:(.text+0x234): undefined reference to `sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)'
I've already checked another topic, and the key to the problem was rebuilding SFML so that the IDE and the up-to-date compiler could use it properly. But I feel like that might not work in my case, as I do not use IDE. What are the other possible precursors to this problem?