Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse (CDT) can't resolve variables?

I'm currently trying to program some OpenGL stuff, but Eclipse is acting strangely.

For some reason, this works:

glClear(GL_COLOR_BUFFER_BIT)

and this too:

glClear(GL_DEPTH_BUFFER_BIT)

but eclipse says it can't resolve the individual enums here:

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)

Any ideas as to why this is happening? The program compiles and runs just fine despite the error indicated by eclipse. Is there some configuration I can change?

like image 434
Lucas Kuhlemann Avatar asked Feb 16 '26 17:02

Lucas Kuhlemann


1 Answers

As it turns out, this is a bug in CDT. It can be solved by right clicking the project and clicking rebuild in the index submenu.

like image 95
Lucas Kuhlemann Avatar answered Feb 18 '26 07:02

Lucas Kuhlemann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!