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.
C2185
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2185
 
     'identifier' : illegal based allocation
 
     A based-allocated variable that explicitly has extern storage
     class and is uninitialized cannot have any of the following
     bases:
 
        ■ (__segment) & var
 
        ■ __segment ("_STACK")
 
        ■ (__segment) __self
 
        ■ void
 
     If the variable does not explicitly have extern storage class or
     is initialized, then its base must use __segname("string") where
     string is any segment name or reserved segment name except
     _STACK.
                                    -♦-