OpenGL linker problem

Hey agian, I installed Sfml and have been using it witout error and now I decided to try out the openGL capabilities.

unresolved external symbol __imp__glClear@4

From the glClear command, everything is a linker error!
Everything that has gl before it fails, my code is good an I included correctly, is this a bug or me installing sfml wrong?
Have you linked OpenGL into your project?
add
-lGLU -lGL
to your compiler options ( if you are using gcc [g++] )
Im using MSVC 2010
Try adding #pragma comment(lib, "opengl32")
1
2
#pragma comment(lib, "glu32")
#pragma comment(lib, "opengl32")  


Did not work, gave me linker errors still
Are you sure you are linking sfml properly?
Everything else has worked properly, opengl started the problem...
Nobody?
You can try the VS2010 SFML project wizard I made http://code.google.com/p/sfml-project-wizard/downloads/list this will add an sfml project option when creating new projects. All you need to do is enter the path to SFML root directory and choose static or dynamic.
Did you add "SFML/Graphic.hpp" to your program? OpenGL headers is included in that header.
BTW, you should add -lsfml-graphics option for linking.

SFML VS tutorial:
http://www.sfml-dev.org/tutorials/1.6/start-vc.php
Topic archived. No new replies allowed.