error gl.h included before glew.h oclutils.h

Hi all

When I include oclUtils.h I get the compilation error

#error gl.h included before glew.h oclUtils.h

I know that this is common mistake depending on the order of the includes but I tried EVERYTHING and I still have the error. Has anyone solve it? Is there any flag on gcc to solve this?

Thank you.

Try to include oclutlis.h after all other includes.

I did and after some other changes it compiles.

Now the problem is that when I call glGenFramebuffersEXT it crashes with a segfault error but I’ll post it in another forum.

Thank you for your reply.