[833] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

HP10.20 pthreads

daemon@ATHENA.MIT.EDU (Hua Ji)
Tue May 25 02:57:01 1999

Date: Mon, 24 May 1999 22:08:54 -0700
To: proven@MIT.EDU
From: Hua Ji <hua@erg.sri.com>
Cc: pthreads@MIT.EDU

Hi,

Good evening!

I am using the aCC + pthread package and have suffered much pain. Please
help provide some tips. Thanks in advance. 
I wrote a very simple application containing ONLY one line code like this:

#include <iostream.h>
#include <pthread.>
int main(){
cout<<"Hello HP!"<<endl;
}

When compiled,  I pretty sure the path of pthread had been specified as
"-I/opt/hppd/include/pthead". Also, all the command options about
marcro(for example, -D_THREAD_SAFE, -DRETRANT,...) have been included.
However, I got some errors about
"memcpy" function in "/opt/aCC/include/iostream/iostream.h". I am totally
lost. The error is really beyond my knowledge.

Furthermore, I removed "#include <pthread.h>. So the code is simpler.

#include <iostream.h>
int main(){
cout<<"Hello HP!"<<endl;
}

The compiling still doesn't work and I got the same error if I left the
"-I/opt/hppd/include/pthead" in the Makefile even though the current
source codes don't need include anything related to pthread.

Then I removed any part related to pthread, apparently it works, printing
out "Hello HP!".

I guess I missed some points when using the pthread package. However,  I
have no any samples in hand. Actually,  I didn't 
even started. Right:--)? I was just stunned, even could not figure out the
INCLUDE conflict:--(

Thanks a lot for any tips. I appreciate it.

Hua

SRI, International



home help back first fref pref prev next nref lref last post