From: benny AT crocodial DOT de (Benjamin Riefenstahl) Subject: Re: can't find 1 Apr 1998 07:16:34 -0800 Message-ID: <351B81D2.ECB4B7C9.cygnus.gnu-win32@crocodial.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: "'GNU-Win32'" Hi Brendan, Brendan Simon wrote: > I've added some more variables recently which use the bool type but > gcc/g++ can't find "bool" is a built-in type for C++. Older C++ compilers didn't have it, so some STL implementations used a header with an enum or defines. You can - remove the line #include - use #ifndef __GNUC__ #include #endif - create an empty header bool.h > I also have the my own types.h file with the following. > > typedef bool BOOL; > > MinGW32 doesn't seem to like this because the Windows API uses BOOL. That's right. The Windows headers are basically in C and they define and use the typedef "BOOL". > I > have tried using BOOLEAN but the Windows API seems to use it as well. Don't know about that one. Just use the built-in "bool" and you should be o.k. so long, benny ====================================== Benjamin Riefenstahl (benny AT crocodial DOT de) Crocodial Communications EntwicklungsGmbH Ruhrstraße 61, D-22761 Hamburg, Germany - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".