errors.hlp (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.
Error Message
                                                  Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler warning (level 1) C4042
 
     'identifier' : has bad storage class
 
     The storage class specified for <identifier> cannot be used in
     this context.
 
     The default storage class for this context was used in place of
     the illegal class:
 
        ■ If <identifier> was a function, the compiler assumed extern
          class.
 
        ■ If <identifier> was a formal parameter or local variable, the
          compiler assumed auto class.
 
        ■ If <identifier> was a global variable, the compiler assumed
          the variable was declared with no storage class.
                                    -♦-