Okay,
so I finally figured out how to link SFML on crunchbang linux properly!!! ;D
I compiled one of my basic SFML programs, specifically this one:
https://github.com/BruceJohnJennerLawso/xkcd-Now
Which works fine except for one function call, specifically sf::Window::setSize(sf::Vector2<unsigned int> const&)
If the line in question for that call is commented out, the program works fine, but when uncommented it causes an error at linking time, when it spits out this:
Now.cpp:(.text+0x455): undefined reference to `sf::Window::setSize(sf::Vector2<unsigned int> const&)'
After doing a little research, it sounds as if this problem could be caused by different function prototypes & definitions.
In the SFML header files that I am using, I have
////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window
///
/// \param size New size, in pixels
///
/// \see getSize
///
////////////////////////////////////////////////////////////
void setSize(const Vector2u& size);
I did compile SFML from scratch, so maybe its possible that this function was inadvertently changed at some point? (without updating the header file to match?)
The signatures in SFML match perfectly, see here (https://github.com/SFML/SFML/blob/master/src/SFML/Window/Window.cpp#L228) and here (https://github.com/SFML/SFML/blob/master/include/SFML/Window/Window.hpp#L287). It would not even be possible to build SFML otherwise.
So there's a configuration issue on your side. Link sfml-window (and make sure the version matches the headers). Start again from a clean point if necessary.
Odd...
I checked the Github links to the function calls you posted, my source and header appears to match that exactly. I dont see any reason to rebuild from source in that case...
I believe I am linking sfml-window when I link the executable:
g++ Now.o -o xkcd-Now -lsfml-graphics -lsfml-window -lsfml-system
Is there anything else that could possibly be causing this error?