problems with pthreads

Michal Liptak liptak@isdd.sk
Tue Feb 18 11:23:00 GMT 2003


print_message_function() must return void*
do that and don't do the (void*) cast in main()..
then it should work

On 18 Feb 2003 12:23:16 +0000
Christian Schaefer <caefer@krachstoff.net> wrote:

>hi michal,
>> doesn't the 'main' thread exit before the other 2 threads are really
>> started?
>thanks for the fast answer but I just added a line 'while(1);'
>to the end of main(), so that main never stops by itself.
>and I still get the same error... could this be a kernel problem?
>I have 2.4.20 installed here.
>
>/christian
>



More information about the Gcc-help mailing list