Hi, The issue is when I include the C header files from C++ code. Even when extern "C" is used the compiler understands c++ types.
Regards, Chris. ----- Original Message ----- From: "Guy Harris" <[EMAIL PROTECTED]> To: "Chris Waters" <[EMAIL PROTECTED]> Cc: "EtherealDev" <[EMAIL PROTECTED]> Sent: Saturday, June 15, 2002 6:04 PM Subject: Re: [Ethereal-dev] bool keyword in prefs-int.h > On Fri, Jun 14, 2002 at 08:50:25AM -0700, Chris Waters wrote: > > The declaration for the preference structure in prefs-int.h uses the name > > 'bool' for a couple of the fields in the structure. bool is a keyword in C++ > > and when compiling prefs-int.h with a C++ compiler (Borland C++ Builder in > > this case) the compiler complains. I haven't tried compiling with MSVC++, > > but its syntax highlighter thinks that bool is a keyword too. > > Well, we compile Ethereal from the command line, and MSVC++ does realize > that Ethereal is C code, not C++ code, and doesn't apply C++'s rules to > it. > > I don't know whether the GUI stuff would work as well; perhaps it > doesn't, and would think it's all C++ - or perhaps it's just the syntax > highlighter that doesn't know the difference. > > _______________________________________________ > Ethereal-dev mailing list > [EMAIL PROTECTED] > http://www.ethereal.com/mailman/listinfo/ethereal-dev >
