ARM Technical Support Knowledge Articles


Applies to: C166 C Compiler


Information in this article applies to:


Help. I receive the following warning when I compile my C code.

*** WARNING 140 IN LINE 14 OF .TEST.C: 'func' undefined; assuming 'extern int func()'

How can I fix this?


This warning indicates that the func function is undefined. The compiler is going to assume that the function is declared as int func ().

To get rid of this warning, you must create a function prototype for the undefined function. For example:

void func (int a, int b);

void main (void)
func (1, 2);

Article last edited on: 2000-03-12 00:00:00

Rate this article

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