Re: ?? warning: ANSI C++ forbids implicit conversion from `void *'in argument passing

2002-02-18 Thread Michael Mitton
d*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!

Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing

2002-02-15 Thread Sven Neumann
n name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and

Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing

2002-02-15 Thread Paul Davis
> > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); the correct declaration for a thread function is: void *the_function_name (void *); if your function is not declared like that, you will need to cast it: pthread_create (&thread, NULL, (void *()(void*)

?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing

2002-02-15 Thread Chris Seberino
forbids implicit conversion from `void *' in argument passing This would all be harmless except I believe newer GTK+ or something in my Linux distro upgrade causes BOTH (with and without (void*)) to return an error!!! NEITHER WORKS!! Is there someway to fix this to avoid errors and warn