borland 5.5

Error E2337 c:\Borland\Bcc55\include\gl\glut.h 146: Only one of a set of overloaded functions can be “C”

#include <windows.h>
#include <GL/glut.h>

why do I get this error when compiling?

Ummm… Let me see: you’re source code only has two lines and they are include files… If there is more code please show it so we can help. I haven’t quite got my psychic degree yet.

I think it is a reply to a suggestion I made and because of that looks little strange. You have to include windows.h before gl.h in Windows but glut.h tries to avoid that. This is not a good idea since different Windows compilers have different headers.
Change “if 0” to “if 1” in glut.h as i suggested in the previous post.

Yeah, why use both <windows.h> and <glut.h> as I assume you are using them for window creation and manipulation. Other than that you can just use the default Borland Form Canvas.