   function pointers in dev-c++ with glaux
  Hi, I get the following error:> 50 C:\kiler\Dev-Cpp\_temp\main.cpp invalid conversion from `void (*)()'' to `void (*)()''Line 50 shows:> auxMainLoop(display);and display function has the following signature:> void display (void)What is the problem? How function pointers are used in Mingw/GCC 3.2 which dev-c++ uses?Thanks alot   --Kemal 
  Hmm, that seems like a weird error. It''s probably because of the way that the auxMainLoop function was coded, with all of that wierd windows crap that they unnecessarily added. It''s probably just an interpretation error with GCC. Anyways, you can get around the problem by typecasting your function pointer when you pass it: auxMainLoop((AUXMAINPROC)display);But I wouldn''t even use glaux, as it''s extremely outdated, and very few people even have the required glaux.dll to run you program you create.   "Java is high performance. By high performance we mean adequate. By adequate we mean slow." - Mr. Bunny ;  You might heard it before but here is once again: Get rid of GLAux. It''s obsolete. It''s useles. Throw it out now.   You should never let your fears become the boundaries of your dreams. ;  hi,Thanks for your help, it did the trick.By the way, I am not using glaux in my project, just using it as a testbed to familiarize myself with openGL. Later on I will use it with MFC.I have another question about glaux, hope you dont mind .Now when I run this little program, I face with this error:"The procedure entry point auxInitWindowA could not be located in the dynamic link library GLAUX.DLL"I have the necessary dll and I call auxInitWindow(argv[0]) in the code. I have googled the error but couldnot find any resource. What may be wrong?Thanks alot.   --Kemal ;quote:Original post by kemalican   "The procedure entry point auxInitWindowA could not be located in the dynamic link library GLAUX.DLL"I have the necessary dll and I call auxInitWindow(argv[0]) in the code. I have googled the error but couldnot find any resource. What may be wrong?You shouldn't be surprised, glaux is ancient and unsupported. Look for the source, try to compile it, see if that version is also broken. If it is, fix it  [edited by - Fruny on February 6, 2004 4:26:54 AM]