Error message under Borland C++ Builder 6.0

Hello there everyone,

I am trying to use glutMouseFunc from GLUT and have called it using glutMouseFunc(mouse_callback_func) where mouse_callback_func is the callback function. I don’t know where I’ve gone wrong as I have appropriately defined and declared mouse_callback_func in the header and source files. Below are the messages that I received from Borland C++ Builder 6.0. I’d truly appreciate if anyone could assist me with this matter. Thank you.

Kind regards,

[C++ Error] MainForm1.cpp(53): E2034 Cannot convert ‘void (_fastcall * (_closure )(int,int,int,int))(int,int,int,int)’ to ‘void ()(int,int,int,int)’
[C++ Error] MainForm1.cpp(53): E2342 Type mismatch in parameter ‘func’ (wanted 'void (
)(int,int,int,int)’, got ‘void’)