SFML community forums

Help => General => Topic started by: apollo11bb on March 27, 2020, 08:13:36 am

Title: undefined refernece to 'glClearColor@16'
Post 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!
Title: Re: undefined refernece to 'g1Clear@4'
Post by: eXpl0it3r on March 27, 2020, 08:17:28 am
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.
Title: Re: undefined refernece to 'glClearColor@16'
Post by: apollo11bb on March 27, 2020, 11:10:29 pm
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
Title: Re: undefined refernece to 'glClearColor@16'
Post by: eXpl0it3r on March 28, 2020, 12:11:26 pm
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
Title: Re: undefined refernece to 'glClearColor@16'
Post by: apollo11bb on March 29, 2020, 03:08:34 am
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.
Title: Re: undefined refernece to 'glClearColor@16'
Post by: apollo11bb on March 30, 2020, 09:02:39 pm
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