Problems with exception classes

Eilmsteiner Reinhard r.eilmsteiner@eilm.at
Mon Jan 27 21:25:00 GMT 2003


Hi!

I'm having weird problems with compiling a program that worked on my old
hard disk with SuSE 7.3.
I moved to RedHat 8.0 lately with gcc version 3.2 20020903 (Red Hat
Linux 8.0 3.2-7).

Here's the source:
***** Begin Source *****
//Global inclusions
#include <exception>
#include <stdarg.h>

//Local inclusions
#include "cstring.h"

////////////////////////////////////////////////////////////////////////////////

typedef const char *TErrMsgList [];
typedef const char **PErrMsgList;

////////////////////////////////////////////////////////////////////////////////

class CException: public exception
***** End Source *****
The last line throws:
cexception.h:31: parse error before `{' token

Any ideas?

Thx in advance,
Reinhard.




More information about the Gcc-help mailing list