Results 1 to 3 of 3

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

  1. #1

    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.

  2. #2
    Senior Member
    Join Date
    Nov 2009
    Posts
    118

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

    Try to include oclutlis.h after all other includes.

  3. #3

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

    Quote Originally Posted by matrem
    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.

Similar Threads

  1. Replies: 0
    Last Post: 05-16-2010, 08:46 AM
  2. fatal error C1189: #error : ERROR: Use of C runtime library
    By gjermani in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 09-24-2007, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •