I managed to get it compiling but when I compile this code:
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "OpenGL", sf::Style::Default, sf::ContextSettings(32));
window.setVerticalSyncEnabled(true);
bool running = true;
while (running)
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
running = false;
else if (event.type == sf::Event::Resized)
glViewport(0, 0, event.size.width, event.size.height);
}
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
window.display();
}
return 0;
}
It throws this error:
C:/path/to/my/project/src/main.cpp:28: undefined reference to `__imp_glViewport'
C:/path/to/my/project/src/main.cpp:33: undefined reference to `__imp_glClear'