ARM Technical Support Knowledge Articles

STDDEF.H CREATES WARNING

Applies to: C51 C Compiler

Answer


Information in this knowledgebase article applies to:


SYMPTOM

When compiling an application using the C51 Compiler Version 8.17 the following warning is created by the file stddef.h.

compiling main.c...
C:\KEIL\C51\INC\STDDEF.H(21): warning C322: unknown identifier

CAUSE

The check for a preprocessor symbol __CX2__ has been incorrectly implemented. It should be #ifdef __CX2__ instead of just #if __CX2__.

RESOLUTION

Download the attached version of the STDDEF.H file and copy it to the folder C:\KEIL\C51\INC.

STATUS

The problem only occurs in C51 Version 8.17. It does not occur in any other version of the toolchain.

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2009-01-16 09:22:05

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential