Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ianhogg@milli.cs.umn.edu (Ian J Hogg)
Subject: C++ & pthreads
Date: Wed, 23 Nov 1994 19:46:45 GMT	[thread overview]
Message-ID: <CzqK8z.IB0@news.cis.umn.edu> (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


                 reply	other threads:[~1994-11-23 19:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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