Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* C++ & pthreads
@ 1994-11-23 19:46 Ian J Hogg
  0 siblings, 0 replies; only message in thread
From: Ian J Hogg @ 1994-11-23 19:46 UTC (permalink / raw)


What libraries and in what order do I need to link with, to use pthreads 
in a C++ program (DEC OSF1 2.0)?  I have the following small program that
even though it is not using pthreads, it fails when linked with pthreads.

#include <iostream.h>
#include <strstream.h>

int main(int, char **)
{
    ostrstream ostr;

    for (int i=0; i<25; i++)  {
	ostr << "Bogus data into stream." << endl;
    }

    return 0;
}

I am compiling it with:
cxx -call_shared -o horse horse.C -lpthreads -lmach -lc_r

When I run horse, I get errors like "not enough swap space".
--
===============================================================================
Ian Hogg						ianhogg@cs.umn.edu
                                                        (612) 424-6332


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-11-23 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-23 19:46 C++ & pthreads Ian J Hogg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox