Tovrea, George W (US SSA) wrote:
This simple program, simple.c, taken from http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
<snip>
> Compiled with
gcc -lpthread simple.c
The sample program compiled with
g++ -lpthread simple.c -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.4.0 -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.4.0/32 -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/lib32 -L/home/users/tovrea/local/sgi6/lib
results in a core with backtrace
In both compiles the option '-pthread' wasn't used...
But the Irix6.x config stuff tells that it has some
meaning with Irix6.x like :
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "%{pthread:-D_REENTRANT}"
So some standard headers may have different definitions
with and without this option...
I would greatly appreciate if anyone working with gcc 4.4.0 on mips-sgi-irix6.5 and pthreads would contact me ASAP
I don't work with this platform so the previous simple
check, compiling with '-pthread', is all I could suggest :(