glutMouseFunc() in Borland Builder

I am trying to use the above call back function in Borland without any success. Has anyone succeeded in using it? It works for me in Visual C++ though. Is there anything that I need to change? I think it’s probably the syntax.

Suf.

The reason for glut is that it works the same on any platform, the syntax should be the same for borland.

What is the error, maybe you need to include another library or compile as a C++ file.
I have found that on DEV-C++, I have to compile as a C++.

Also you may need to have #include <stdlib.h> included in your code.

Another option is DEV-C++, nice IDE interface, works well with glut and is free.

Originally posted by Suf:
[b]I am trying to use the above call back function in Borland without any success. Has anyone succeeded in using it? It works for me in Visual C++ though. Is there anything that I need to change? I think it’s probably the syntax.

Suf.[/b]

Hi,

yes, I succeeded. Do you have other glut functions that already worked? is glut well declared/installed ? I’ll try to help