PDA

View Full Version : glutMouseFunc() in Borland Builder



Suf
03-05-2003, 01:09 PM
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.

nexusone
03-05-2003, 05:32 PM
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:
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.

acerb
03-07-2003, 06:12 AM
Hi,

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