I've just tried to compile the same example and had no problems, so I wonder if your SDK is setup correctly.
Have you succesfully built other examples ? If not, then you need to go through the pain of setting up the SDK correctly. The are a number of entries on the noticeboards about how to solve these problems.
If you have compiled other examples ok, I wonder if one of your header files is corrupted. Check E32STD.H and any file it includes to make sure it looks ok. I've had this type of error when one of my header files did not have a semi-colon after a class definition ie.
class myClass : public CBase
} // <------- missing semi colon here