PDA

View Full Version : borland 5.5



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

Ashtray_W
11-23-2001, 12:09 PM
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, 05: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, 08: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.