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.
C2350
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2350
 
     'identifier' is not a static member
 
     A nonstatic member of a class or structure was defined.
 
     Only a static member or member of an instance or a class or
     structure can be defined.
 
     The following is an example of this error:
 
          class C
          {
          public:
             int i;
             static int s;
          };
 
          void main()
          {
             int C::i = 0;  // error, nonstatic member
             int C::s = 0;  // OK, static member
             C.c;
             c.i = 0;       // OK, member of instance of C
          }
                                    -♦-