-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gabrielle A. Grün wrote:
Hi All,
Does anyone know a way around the illegal reference of a non-static
member? Thanks.
<snip a lot of code>
Please post only a minimal example. Nobody cares about so much code.
TestInheritG.cpp(__) : error C2597: illegal reference to non-static member
Visual C++ Concepts: Building a C/C++ Program
Compiler Error C2597
Error Message
illegal reference to non-static member 'identifier'
Possible causes:
1. A nonstatic member is specified in a static member function. To
access the nonstatic member, you must create an instance of the class
and use a member-access operator (. or ->).
2. The specified identifier is not a member of a class, structure, or union.
3. A member access operator refers to a nonmember function.
4. The following sample generates C2597: (see
http://msdn2.microsoft.com/library/422tf4a2.aspx)
- --
Greetings, Thomas Jakob
quicix (at) gmail (dot) com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFDvyJZbpGyJtILqbcRAl2cAJ9sfOqvZAnPduCagtYftd N9f0uD/gCeOTsD
rcdIRLQjNgP1qt9mdKoIJ1Q=
=gFPt
-----END PGP SIGNATURE-----