Re: pthread has error on Etch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
- --
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian! |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGCFUiv8UcC1qRZVMRAm63AKCIrAvwSFrps6U9dHR6tZ8ThsKJHwCeLBt6
tqK804B0IEgwG8ckCYKSdCM=
=mx+E
-----END PGP SIGNATURE-----
Reply to: