From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d5e835cb36c23bbf,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-23 11:46:45 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!news.dfn.de!swiss.ans.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!umn.edu!milli!ianhogg From: ianhogg@milli.cs.umn.edu (Ian J Hogg) Subject: C++ & pthreads Message-ID: Sender: news@news.cis.umn.edu (Usenet News Administration) Nntp-Posting-Host: milli.cs.umn.edu Organization: University of Minnesota, Minneapolis, CSci dept. Date: Wed, 23 Nov 1994 19:46:45 GMT 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 #include 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