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!!
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
>
> 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*)
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