Re: pthread has error on Etch

2007-03-26 Thread Mohsen Pahlevanzadeh
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-26 Thread Wackojacko

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


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: pthread has error on Etch

2007-03-26 Thread Mohsen Pahlevanzadeh
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-26 Thread Kevin Mark
-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-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-26 Thread Mohsen Pahlevanzadeh
-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-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-26 Thread Greg Folkert
On Tue, 2007-03-27 at 10:59 +0330, Mohsen Pahlevanzadeh wrote:
 My problem was solved.Since i reinstall pthread library,My program has
 been working fine.
 - --Mohsen

I hate to tell you this, but you have contradicted yourself three times
now.

You are not dealing with Windows where Remove and Reinstall typically
works.

Stop asking on public mailing lists for your homework help.
-- 
greg, [EMAIL PROTECTED]

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-26 Thread Roberto C . Sánchez
On Mon, Mar 26, 2007 at 08:27:36PM -0400, Greg Folkert wrote:
 On Tue, 2007-03-27 at 10:59 +0330, Mohsen Pahlevanzadeh wrote:
  My problem was solved.Since i reinstall pthread library,My program has
  been working fine.
  - --Mohsen
 
 I hate to tell you this, but you have contradicted yourself three times
 now.
 
 You are not dealing with Windows where Remove and Reinstall typically
 works.
 
Greg,

I'm not sure if you follow the debian-devel list, but apparently a kind
Debian Developer on the c++-pthreads list recommended the Moshen
reinstall his libc6-dev package since something he posted on that list
(which was OT since he was asking a C question on a C++ list), indicated
a possible problem with the package.

 Stop asking on public mailing lists for your homework help.

I'd have to agree with that.

Regards,

-Roberto
-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Re: pthread has error on Etch

2007-03-26 Thread Greg Folkert
On Mon, 2007-03-26 at 20:32 -0400, Roberto C. Sánchez wrote:
 On Mon, Mar 26, 2007 at 08:27:36PM -0400, Greg Folkert wrote:
  On Tue, 2007-03-27 at 10:59 +0330, Mohsen Pahlevanzadeh wrote:
   My problem was solved.Since i reinstall pthread library,My program has
   been working fine.
   - --Mohsen
  
  I hate to tell you this, but you have contradicted yourself three times
  now.
  
  You are not dealing with Windows where Remove and Reinstall typically
  works.
  
 Greg,
 
 I'm not sure if you follow the debian-devel list, but apparently a kind
 Debian Developer on the c++-pthreads list recommended the Moshen
 reinstall his libc6-dev package since something he posted on that list
 (which was OT since he was asking a C question on a C++ list), indicated
 a possible problem with the package.

I did and it appeared Ben used it as a brush off. And re-enforced what
he told him. But I have to say, do you believe the an RR would fix his
problem?

Moshen even said:

They said me that i reinstall libc6-dev package,i reinstalled
it,But i see given errors.

So, which contradiction do you believe?

  Stop asking on public mailing lists for your homework help.
 
 I'd have to agree with that.

Me to, oh, wait...
-- 
greg, [EMAIL PROTECTED]

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup



Re: pthread has error on Etch

2007-03-26 Thread Roberto C . Sánchez
On Mon, Mar 26, 2007 at 08:53:18PM -0400, Greg Folkert wrote:
 On Mon, 2007-03-26 at 20:32 -0400, Roberto C. Sánchez wrote:
  
  I'm not sure if you follow the debian-devel list, but apparently a kind
  Debian Developer on the c++-pthreads list recommended the Moshen
  reinstall his libc6-dev package since something he posted on that list
  (which was OT since he was asking a C question on a C++ list), indicated
  a possible problem with the package.
 
 I did and it appeared Ben used it as a brush off. And re-enforced what
 he told him. But I have to say, do you believe the an RR would fix his
 problem?
 
 Moshen even said:
 
 They said me that i reinstall libc6-dev package,i reinstalled
 it,But i see given errors.
 
 So, which contradiction do you believe?
 
I'd like to have the computer take away two choices?

   Stop asking on public mailing lists for your homework help.
  
  I'd have to agree with that.
 
 Me to, oh, wait...
 
Me too.  Oh  nevermind, it's late and I should probably be sleeping.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Re: pthread has error on Etch

2007-03-26 Thread Kevin Mark
On Mon, Mar 26, 2007 at 08:32:20PM -0400, Roberto C. Sánchez wrote:
 On Mon, Mar 26, 2007 at 08:27:36PM -0400, Greg Folkert wrote:
  On Tue, 2007-03-27 at 10:59 +0330, Mohsen Pahlevanzadeh wrote:
   My problem was solved.Since i reinstall pthread library,My program has
   been working fine.
   - --Mohsen
  
  I hate to tell you this, but you have contradicted yourself three times
  now.
  
  You are not dealing with Windows where Remove and Reinstall typically
  works.
  
 Greg,
 
 I'm not sure if you follow the debian-devel list, but apparently a kind
 Debian Developer on the c++-pthreads list recommended the Moshen
 reinstall his libc6-dev package since something he posted on that list
 (which was OT since he was asking a C question on a C++ list), indicated
 a possible problem with the package.
 
  Stop asking on public mailing lists for your homework help.
 
 I'd have to agree with that.
 
If someone is going to ask for help on a homework problem, the person
should at least try to learn the language well enought to provide a
syntactically correct program. You should try to eliminate all other
possible errors before you start to worry about possible library
reinstallation. I made it work by fixing the syntax error, fixing the
function calls and code organization, then it worked. no need to
reinstall anything.
-- 
|  .''`.  == 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!  |


signature.asc
Description: Digital signature


Re: pthread has error on Etch

2007-03-26 Thread Mohsen Pahlevanzadeh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greg Folkert wrote:
 On Mon, 2007-03-26 at 20:32 -0400, Roberto C. Sánchez wrote:
 On Mon, Mar 26, 2007 at 08:27:36PM -0400, Greg Folkert wrote:
 On Tue, 2007-03-27 at 10:59 +0330, Mohsen Pahlevanzadeh wrote:
 My problem was solved.Since i reinstall pthread library,My program has
 been working fine.
 - --Mohsen
 I hate to tell you this, but you have contradicted yourself three times
 now.

 You are not dealing with Windows where Remove and Reinstall typically
 works.

 Greg,

 I'm not sure if you follow the debian-devel list, but apparently a kind
 Debian Developer on the c++-pthreads list recommended the Moshen
 reinstall his libc6-dev package since something he posted on that list
 (which was OT since he was asking a C question on a C++ list), indicated
 a possible problem with the package.
 
 I did and it appeared Ben used it as a brush off. And re-enforced what
 he told him. But I have to say, do you believe the an RR would fix his
 problem?
 
 Moshen even said:
 
 They said me that i reinstall libc6-dev package,i reinstalled
 it,But i see given errors.
 
 So, which contradiction do you believe?
 
 Stop asking on public mailing lists for your homework help.
 I'd have to agree with that.
 
 Me to, oh, wait...
Dear Greg,
Debian Etch are working with libqthreads-12 by default.When i installed
libpthread20  libpthread-dev ,I see those errors.Now i purged these
libraries  reinstall libqthreads-12 it was solved.
Results:
1.Debian Etch are using libqthreads-12 by default.
2.libc6-dev doesn't related to my problem.(i told that reinstall
libc6-dev in devel mailing list)
Be sure, i must apologize from member of this mailing list.I'm afraid of.
Yours,Mohsen
3.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCHLgixBch8qE3VMRAvrTAKCipybyAeYUqOcpCE42W4Eteks2LwCgxR7t
qGPBXAKX1h/IiUypqxurT6c=
=7KT1
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pthread has error on Etch

2007-03-25 Thread Jhair Tocancipa Triana
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,

-- 
-- Jhair


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]