AnsweredAssumed Answered

Please, help me find the errors

Question asked by David Hackenbracht on Feb 24, 2014
Latest reply on Feb 26, 2014 by Pascal Irrle

Error I can't find

I am starting the demo board by Code Warrior DEMO9S08AW60E, and using the software that came with it CW 10.1

I am trying to compile some code and burn it to the micro but it fails with the error, C2801 '}' missing        ecetypes.h                /TV-3 Project Test 1/Project_Headers    line 35   C/C++ Problem

Line 35 is " typedef unsigned char U8;

Full code is for header file is:

 

#ifndef _ECETYPES_H_

#define _ECETYPES_H_

//---------------------------------------------------------------------------

//--------------------------------------------------------------------------

             

typedef unsigned char U8;

typedef unsigned short U16;

typedef unsigned long U32;

typedef signed char S8;

typedef short int S16;

typedef long int S32;

 

//-------------------------------------------------------------------------                                  

//--------------------------------------------------------------------------

 

#endif

 

The file in the project, I have looked for 2 days on the web and the code looks fine. Should I be looking elsewhere? Could someone please give me a clue? or some help? Gosh, I would appreciate it, I really don't know what else to do.

The closest I came was in Chinese, after translation all it said you are missing a brace. Not much help.

Much Thanks, in advance

David

Outcomes