Article View: gnu.g++.help
Article #889Re: SGI and C++
From: Shankar Unni
Date: Tue, 06 Feb 1996 00:23
Date: Tue, 06 Feb 1996 00:23
25 lines
1471 bytes
1471 bytes
Axel Thimm (axl@zedat.fu-berlin.de) wrote:
> I tried CC and cc but e.g. neither recognizes 'bool' as an integrated
> type. Are there any flags, I should have put into the compiler line? I
> looked at the man pages but found nothing. The C++ progs have .cc
> suffices.
C doesn't have a bool type anyway. The C++ bool type is relatively new, and
the 6.1 compiler doesn't have it. The -64 and -n32 compilers on Irix 6.2
will recognize bool.
In the meantime, there's a simple source workaround for bool, which will
interoperate with the real bool when you get Irix 6.2 (after its release):
#ifndef _BOOL
/* Builtin bool not available - use typedef */
typedef unsigned char bool;
static const bool false = 0;
static const bool true = 1;
#endif /* _BOOL */
--
Shankar Unni E-Mail: shankar@sgi.com
Silicon Graphics Inc. Phone: +1-415-933-2072
URL: http://reality.sgi.com/employees/shankar
Technical Details
Message-ID:
<4f6726$4ch@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!engr.sgi.com!shankarReferences:
<4f609s$rho@fu-berlin.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engr.sgi.com!shankar From: shankar@engr.sgi.com (Shankar Unni) Newsgroups: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc Subject: Re: SGI and C++ Followup-To: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc Date: 6 Feb 1996 00:23:34 GMT Organization: Silicon Graphics, Inc., Mountain View, CA Message-ID: <4f6726$4ch@fido.asd.sgi.com> References: <4f609s$rho@fu-berlin.de> Reply-To: shankar@engr.sgi.com NNTP-Posting-Host: boris.mti.sgi.com X-Newsreader: TIN [version 1.2 PL2]