0

I have an app in c# and I want to compile with cl.exe an opengl - cpp file. When I try to compile I always get the error GL/GLUT.h: No such file or directory. I tried to put both gl.h and glut.h in the same folder as the cpp file but nothing. Also, before #include <GL/GLUT.h>, is #include <GL/GL.h>, but this is ok...it shouldn't give me an error for gl.h first? Can anyone tell me what the problem is?

1 Answers1

0

If you are putting them in same folder then you have to write your include statement like this

#include "glut.h"

You dont need to include gl.h as glut will do that for you.

Abhishek Bansal
  • 5,197
  • 4
  • 40
  • 69