'identifier' : not in formal parameter list
The identifier was declared in a function definition but not in the formal parameter list. (ANSI C only)
Possible cause
void func1( void ) void main( void ) { }
With the semicolon missing, func1()
looks like a function definition, not a prototype, so main
is defined within func1()
, generating Error C2085 for identifier main
.