PDA

View Full Version : GLUT + C++ (borland)



lsdi
01-11-2002, 11:22 AM
I c++ codes (test.cpp) I got this error:

c:\Borland\Bcc55\include\glut.h 146: Only one of a set of
overloaded functions can be "C"

But it compiles fine if the file extension is .C (test.c)...

can anyone help me?

PS. code are completely right, libs are imported ok, header ok.

01-12-2002, 09:21 AM
I have same problem...
It is problem on glut.h something to do with namespace systems...
this problem is only with new glut 3.7.? so use old ones and it should work http://home.clara.net/paulyg/ogl.htm here you can get old glut that works with borland...
after using glut sometime start learning pure win 32 if you donšt need multi platform support... you can compile windows applications with bcc32 -tW main.cpp option and you don't need glut...

lsdi
01-12-2002, 09:39 AM
Thanks

... Im using win32 api to create window etc, but Im trying to make my project protable do unix or something. I read about CPW library, but it aparently dont works fine.

http://www.opengl.org/discussion_boards/ubb/smile.gif