Renesas Technology, Tools FAQs
Last Updated: August 25, 2000
Document Number: 01051243_e
Q.
Why doesn't the compiler generate an error when I reference an external function that has not been declared as "extern"?
A.
When there is no extern declaration (prototype declaration) for the function, the function is assumed to be an int type function, as
per the ANSI specifications. Therefore, the function is referenced externally as 'in type', and no error is generated. To detect
functions that do not have an extern declaration (prototype declaration), specify the -Wno_prototype (-WNP) or -Wall option during
the compile. This will generate warnings for functions that do not have a prototype declaration.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Kommentare zu diesen Handbüchern