[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pthread has error on Etch



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My problem was solved.Since i reinstall pthread library,My program has
been working fine.
- --Mohsen
Kevin Mark wrote:
> On Tue, Mar 27, 2007 at 05:33:07AM +0330, Mohsen Pahlevanzadeh wrote:
>> Wackojacko wrote:
>>> Mohsen Pahlevanzadeh wrote:
>>>> Jhair Tocancipa Triana wrote:
>>>>> Mohsen Pahlevanzadeh writes:
>>>>>
>>>>>> void *task1(int *counter)
>>>>>> {
>>>>>>         while(*counter < 5 ){
>>>>>>                 printf("task1 count: %d\n",*counter);
>>>>>>                 (*counter)++;
>>>>>>         }//end of while
>>>>> You are missing a parenthesis here.
>>>>>
>>>>>> void cleanup(int counter1,int counter2)
>>>>>> {
>>>>>>         printf("Total iterations: %d\n",counter1+counter2);
>>>>>> }//end of cleanup function
>>>>>> But i receive following error:
>>>>> With the parenthesis mentioned above added compiles fine in Debian
>>>>> unstable.
>>>>>
>>>>> HTH,
>>>>>
>>>> I can't understand where i put parenthesis.
>>>> --Mohsen
>>> Excuse me jumping in, but I think its the 'end of task1 function' that
>>> requires a '}'.
>>>
>>> HTH
>>>
>>> Wackojacko
>>>
>>>
>> It's a copy/paste problem.
>> If i has been compiled it,I received  a syntax error.
>> --Mohsen
> Could you tell us if:
> 
> -this is for a class
> -you have ever read a book on C and its syntax
> -you understood what you read
> 
> because anyone who has had one class on C should have only minimal problem
> with this.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCMfGD8PiIgNogKURAlegAKCa9ZPNecG/Z+aBc/jLOZ+ie56RQwCglMcL
NVI2pKu9BlH7kYv5UxCpmBY=
=Ji6I
-----END PGP SIGNATURE-----



Reply to: