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 whileYou 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