SFML community forums

Help => General => Topic started by: krrice on November 12, 2011, 08:13:05 pm

Title: opengl codeblocks
Post by: krrice on November 12, 2011, 08:13:05 pm
I am getting a error when trying to compile code with opengl

error: 'glClearDepth' was not declared in this scope|

I am using sfml2, do i need to link the opengl libraries and how?[/img][/code]
Title: opengl codeblocks
Post by: Nexus on November 12, 2011, 08:31:20 pm
Include <SFML/OpenGL.hpp> and link OpenGL32.lib (on Windows).