Re: g++ problem when attempting to cast a function pointer in an OpenGL GLU callback

2005-07-20 Thread Brian Dessent
"Day, Michael A AMRDEC/UAH" wrote: > test.cpp:72: error: invalid conversion from `void (*)()' to `void (*)()' Win32 API functions generally use the stdcall calling convention, not the standard C one. Your tcbBegin is not defined this way and this could be what the compiler is trying to tell you,

g++ problem when attempting to cast a function pointer in an OpenGL GLU callback

2005-07-20 Thread Day, Michael A AMRDEC/UAH
I've got a program I'm attempting to port from Red Hat Enterprise Linux 3 to Cygwin (on Windows). g++ -v in Cygwin reveals: gcc version 3.4.4 g++ -v in Red Hat reveals: gcc version 3.2.3-52 There's the background. Here's the problem: I'm attempting to cast a function pointer in the followin