This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problems with exception classes
- From: Eilmsteiner Reinhard <r dot eilmsteiner at eilm dot at>
- To: gcc-help at gcc dot gnu dot org
- Date: 27 Jan 2003 22:25:24 +0100
- Subject: Problems with exception classes
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.