Fatal Errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fatal Errors

598 Views
sagardhavali
Contributor III

Hello,

I am getting few fatal errors.

 - FATAL C4440: Unknown directive: endif

 - FATAL C4438: Missing endif directive

I do have proper closing of ifdef / ifndef directives and respective endif directives at the end. Yet, I am getting these errors in HC12 compiler.

Does anyone knows about the same or similar error and solutions?

Thank You,

Sagar

Labels (1)
Tags (2)
0 Kudos
1 Reply

439 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

It is not clear which compiler you use and what is the structure of your code.

However, I see no problem if you use it for example:

#ifndef _COMDEF_H
#define _COMDEF_H

#include "derivative.h"      /* derivative-specific definitions */

#define UBYTE unsigned char
#define SBYTE          char
#define UWORD  unsigned int
#define SWORD           int
#define ULONG unsigned long
#define SLONG          long

#define BOOL           UBYTE

#endif

If this does not helps then it is necessary to get more precise info.

Best regards,

Ladislav

0 Kudos