View Full Version : borland 5.5

11-23-2001, 10:52 AM
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?

11-23-2001, 11:09 AM
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.

11-23-2001, 04:16 PM
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.

11-23-2001, 07:28 PM
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.