RAD Studio
ContentsIndex
PreviousUpNext
W8045: No declaration for function 'function' (C++)

(Command-line option to display warning: -wnod) 

This message is given if you call a function without first declaring that function. 

In C, you can declare a function without presenting a prototype, as in

int func();

In C++, every function declaration is also a prototype; this example is equivalent to

int func(void);

The declaration can be either classic or modern (prototype) style.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!