Article View: comp.sys.sgi.apps
Article #80SGI's C++ compiler and the boolean type
From: James Adams
Date: Tue, 09 Apr 1996 20:01
Date: Tue, 09 Apr 1996 20:01
34 lines
1636 bytes
1636 bytes
Hello, I have begun using SGI's C++ compiler (Translator 4.0) since I want to use their CASEVision debugger. I have previously used g++ to do my compilation, and it correctly interpreted the "bool" type without any problems. However now that I am using SGI's compiler I get all kinds of compiler errors whenever it encounters "bool", "true", or "false" in my codes. The only workaround I've been able to come up with is to include the following lines in my header file: typedef int bool; #define true 1 #define false 0 Is there something that I'm missing here, such as compiler flags or include files ? Is this a case of SGI dropping the ball by not including support for a standard type ? The command I'm using to compile with is CC -g -o plusfilt main.cpp frame.cpp buffer.cpp options.cpp list.cpp -lm Thanks for any suggestions or insight ! -James -- --------------------------------------------------------------------------- James Adams Email: jadams@ucar.edu National Center for Atmospheric Research Phone: (303) 497-1356 Boulder, Colorado Fax: (303) 497-1348 WWW: http://www.cgd.ucar.edu/ccr/jadams/home.html
Technical Details
Message-ID:
<4kefm7$oao@ncar.ucar.edu>Path:
arc1-ca.pugleaf.net!sage.cgd.ucar.edu!jadamsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sage.cgd.ucar.edu!jadams From: jadams@sage.cgd.ucar.edu (James Adams) Newsgroups: comp.sys.sgi.apps,comp.lang.c++ Subject: SGI's C++ compiler and the boolean type Date: 9 Apr 1996 20:01:11 GMT Organization: National Center for Atmospheric Research Distribution: world Message-ID: <4kefm7$oao@ncar.ucar.edu> Reply-To: jadams@sage.cgd.ucar.edu NNTP-Posting-Host: sage.cgd.ucar.edu