SFML community forums
Help => General => Topic started by: apollo11bb on March 27, 2020, 08:13:36 am
-
so heres the deal- I just actually downloaded SFML. And as usual something goes wrong- I ran the test and straight into the "undefined reference" devil. Got this message:"undefined reference to 'glClearColor@16'".
Im using codeblocks.
I would really appreciate the help!
thx in advance!
-
You need to link OpenGL as described in the tutorial. ;)
A quick search should've given you similar answers as it's a rather common problem that people run into.
-
Im still having the same problem. but the thing is that Im running on windows, and the tutorial says that all should be included.
im sure im doing something wrong... just cant figure it out
-
If you need further help, you do have to provide more information. "Doesn't work" is not a problem description. ;)
https://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
-
ok, I found a youtube video on the sfml setup. and it didn't work. I got the same "undefined reference to..." message. Then I figured, Ill try some other way. So I found another video on sfml setup... still the same message. I figured maybe I should try my own way (I followed the SFML Tutorial from SFML.com) still the same- "undefined reference to 'glClear@4'" and "undefined reference to 'glClearColor@16'". :-\
I honestly have no idea where Im going wrong. ive started working with GLUT, but to be fully honest, I really want to work with SFML.
-
You need to link OpenGL as described in the tutorial. ;)
A quick search should've given you similar answers as it's a rather common problem that people run into.
thank you so much I got it finally! :D