System: Solaris 7, Sun C++ 5.0
I have problem with multithreading and streams.
using namespace std;
#CC tper.cpp -o tper
I have not problems.
But if I'll compile with -mt
#CC tper.cpp -mt -o tper
and try to execute tper, I receive
signal fault in critical section
signal number: 11, signal code: 1,
libthread panic: fault in libthread critical
section (PID:12955 LWP 1)
This problem disappears if I use static ( static
fstream f; )
Have you any idea or suggestion about this
Thanks in advance,
Sent via Deja.com http://www.deja.com/
Before you buy.