Hi all, I am just getting into SFML. I was setting/compiling up 2.1 on my LMDE partition by following the 2.1 tutorial in the official resources (http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php) and afterwords I try compiling a simple program to test if everything works. I end up failing because the linker can not find anything related to SFML.
Here is the code.
#include <SFML/Graphics.hpp>
bool events(sf::RenderWindow &window)
{
sf::Event event;
window.pollEvent(event);
if(event.type == sf::Event::EventType::MouseButtonPressed)
{
return true;
}
return false;
}
int main()
{
sf::RenderWindow window;
window.create(sf::VideoMode(400, 400), "Test!");
window.setFramerateLimit(4);
while(!events)
{
window.clear(sf::Color(0,0,0));
window.display();
window.clear(sf::Color(128,128,128));
window.display();
}
window.close();
return 0;
}
Any idea as to what I can do to figure out what went wrong?