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 error C2185
 
     'identifier' : illegal _based allocation
 
     A _based-allocated variable that explicitly has extern storage
     class and is uninitialized may not have a base of any of the
     following:
 
        ■ (_segment) & var
        ■ _segname("_STACK")
        ■ (_segment)_self
        ■ void
 
     If the variable does not explicitly have extern storage class or
     it is uninitialized, then its base must use _segname("<string>")
     where <string> is any segment name or reserved segment name except
     "_STACK".
                                    -♦-