The following works on solaris, but doesn't compile on windows visual studio 6. is there a way to do this differently so it compiles in both places?
In ComandLineArg.h
-------------------------
class CommandLineArg
{
private:
..etc..
static int longestDescr;
..etc..
};
In CommandLineArg.cpp
-------------------------------
CommandLineArg::longestDescr=0;
Error on visual studio:
error C2501: 'longestDescr' : missing storage-class or type specifiers