I get the error on compiling: ./test2: symbol lookup error: ./test2: undefined symbol: _ZN2sf6WindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
}
}
It's saying the sf::Window constructor is not in any of the libraries you linked in. Sorry, no idea. Maybe you're using different versions of headers and libraries?