[633] in Pthreads mailing list archive
Possibly bug in libpthread and C++ ?
daemon@ATHENA.MIT.EDU (Michael Widenius TcX DataKonsulter)
Tue Apr 15 06:03:33 1997
Date: Tue, 15 Apr 1997 11:49:44 +0200 (MET DST)
From: Michael Widenius TcX DataKonsulter AB <monty@analytik.analytikerna.se>
To: fenyo@email.enst.fr
Cc: pthreads@MIT.EDU
In-Reply-To: <199704142115.XAA22975@nikopol.enst.fr>
Reply-To: monty@analytikerna.se
>>>>> "eowyn" == eowyn <Alex> writes:
eowyn> Hello,
eowyn> I'm trying to use Chris Provenzano's pthreads implementation on FreeBSD
eowyn> and I encounter a strange behavior with C++ :
eowyn> The following very simple program :
eowyn> ------------------------------------------------------------
eowyn> #include <stdio.h>
eowyn> #include <unistd.h>
eowyn> #include <g++/iostream.h>
eowyn> main()
eowyn> {
eowyn> cerr << "LINE1\n";
eowyn> write(1, "LINE2\n", 6);
eowyn> cout << "LINE3\n";
eowyn> }
eowyn> ------------------------------------------------------------
eowyn> doesn't work correctly when linked with libpthread.a and works correctly
eowyn> without libpthread.a.
<cut>
You can't use iostreams objects and pthreads because there is no wrapper around them.
Other things should work with pthreads.
Monty