Fatal Errors

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fatal Errors

1,082件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

923件の閲覧回数
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 件の賞賛
返信