GLUT + C++ (borland)

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.

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…

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.