C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2085
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2085
 
     'identifier' : not in formal parameter list
 
     The identifier was declared in a function definition but not in
     the formal parameter list.
 
     A common cause of this error is the omission of a semicolon (;)
     at the end of a function prototype, as in:
 
          void func1( void )
          void main( void )
          {
          }
 
     With the semicolon missing, func1() is taken to be a function
     definition, not a prototype. This means the function main()
     is being defined within func1(). Error C2085 is generated for
     the identifier 'main'.
 
     This is an error in ANSI C only.
                                    -♦-