ARM Technical Support Knowledge Articles

ERROR C267 ('FUNCTION': REQUIRES ANSI-STYLE PROTOTYPE)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I've received the following error message while compiling my program:

Error C267: 'function': requires ANSI-style prototype

What does this message mean?

ANSWER

This error message indicates that the function you are defining was prototyped with an empty parameter list but the definition includes parameters. Your function prototypes must match your function definitions. Find the prototype and either remove it or update it so that its arguments match that of the definition and everything will work OK.

Article last edited on: 2004-06-28 16:50:47

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