SFML community forums
Help => Graphics => Topic started by: Metapyziks on December 31, 2009, 11:56:33 pm
-
(I'm using VC++ 2008 express)
I'm trying to use opengl in a project, but I keep getting errors similar to this:
1>.\main.cpp(23) : error C3861: 'glClearDepth': identifier not found
1>.\main.cpp(24) : error C3861: 'glClearColor': identifier not found
1>.\main.cpp(27) : error C2065: 'GL_DEPTH_TEST' : undeclared identifier
....
There are many more like that, one for each opengl related thing I reference.
I tested it with the opengl example from your tutorials (the errors above are from that). I have included the following things as additional dependencies in the linker settings:
glu32.lib
opengl32.lib
sfml-main.lib
sfml-system.lib
sfml-window.lib
sfml-graphics.lib
What could the problem be?
-
Did you write the following include directive?
#include <SFML/OpenGL.hpp>
-
you haven't installed the opengl library.
I don't know how to install it in vc because I am using gcc and will never use vc
-
Did you write the following include directive?
#include <SFML/OpenGL.hpp>
there is no SFML/OpenGL.hpp
-
Did you write the following include directive?
#include <SFML/OpenGL.hpp>
there is no SFML/OpenGL.hpp
Yes there is! I'm using it. :wink:
-
It may depend on your SFML version. I'm not sure about this, but perhaps OpenGL.hpp is in the Graphics folder in older versions, just search the file in the SFML directory.
-
there is no SFML/OpenGL.hpp
Don't forget that we're talking about SFML 2 ;)
-
there is no SFML/OpenGL.hpp
Don't forget that we're talking about SFML 2 ;)
I love opengl, I would like to use GL/gl.h
-
there is no SFML/OpenGL.hpp
Don't forget that we're talking about SFML 2 ;)
I love opengl, I would like to use GL/gl.h
Which SFML/OpenGL.hpp includes