Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!caen.engin.umich.edu!grue From: grue@caen.engin.umich.edu (Paul Howell) Newsgroups: comp.lang.c++ Subject: Re: AT&T C++ 2.1 on SUNOS 4.1??? Keywords: AT&T C++ 2.1 on SUNOS 4.1??? Message-ID: <1991Feb1.173748.15904@engin.umich.edu> Date: 1 Feb 91 17:37:48 GMT References: <1991Feb1.022619.8617@cs.uow.edu.au> Sender: news@engin.umich.edu (CAEN Netnews) Reply-To: grue@caen.engin.umich.edu (Paul Howell) Organization: University of Michigan Engineering, Ann Arbor Lines: 31 In article <1991Feb1.022619.8617@cs.uow.edu.au>, gordon@cs.uow.edu.au (Gordon Cheng) writes: |> Help!!! |> I am trying to install AT&T C++ 2.1 on our SUN running SUNOS 4.1, |> and I'm keep on getting size_t errors have anyone out there have this |> problem before or know how I can fix it. |> |> -gordon I had a similar problem on sparcs using sunos 4.1. This is what I did to fix the problem. In /usr/include/sys/stdtypes.h, I did the following: #ifndef CPLUSPLUS typedef int size_t; /* ??? */ #else typedef unsigned int size_t; /* ??? */ #endif Then in the root level makefile, I did this: # any special option to pass to CC CCFLAGS = -O -D$(SYS) -DCPLUSPLUS After that, go back and 'make scratch'. --- Paul Howell grue@caen.engin.umich.edu