
30 Jun
2006
30 Jun
'06
6:08 p.m.
On Fri, 2006-06-30 at 11:04 -0700, Cory Nelson wrote:
What I am getting back from the g++ compiler is the following error message:
error: cannot convert `boost::function
' to `void (*)()' for argument `1' to `void glutDisplayFunc(void (*)())' Any ideas where I am going wrong?
You are passing a function object to a C function which expects a function pointer. A boost::function can not be converted into a function pointer.
I appreciate the response pointing out the error. It would be nice to have a solution and not just a critique. Stephen