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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With