[comp.sys.sgi] Help, porting AT&T C++ to SGI 4D220

rapo@cs.cornell.edu (Andy Rapo) (02/23/91)

Hi,
	I'm about to attempt a port of ATT C++ 2.0 to an SGI Iris 4D220.  The instructions I have don't address SGI machines.  They are for HP's, Suns, and AT&T machines.  Does anyone - who's been through this already - have any tips, advice, etc. that would be helpful?  I'm just barely familiar enough with Unix to do this.

Thanks,
Andrew Rapo

emo@ogre.cica.indiana.edu (Eric Ost) (02/27/91)

I have successfully ported AT&T C++ version 2.1 to a couple of SGI platforms.
You should select SYS=SYSV and OS=svr3 in all significant makefiles.
You should also pay particular attention to the #include files which are
constructed by the makefile in ./incl-master.  The only proto header file
which required modification was  math.h.  In particular, several function
prototypes are inconsistent with the definitions contained in the distributed 
/usr/include/math.h.   The easiest fix for these differences is to look
at the proto header file in ./incl-master and add lines similar in form
to those which were added to compensate for differences in the Alliant
architecture.  This permits you to then use the same set of proto header
files to build C++ on several difference architectures thereby only having to
modify the makefiles.  Compare the prototypes presented in the SGI version 
of math.h, i.e. /usr/include/math.h, with those presented in AT&T's proto 
header file in order to construct the corrected instances.

If you run into problems, feel free to send me Email and I will make an
attempt to respond as soon as my schedule permits.

Good luck.

eric