Jeff Schwab
11/26/2008 9:12:00 PM
neilsolent wrote:
> I get the error in the subject line when I try to call a static member
> of my class CReg like this:
>
> CReg::GetStrValue("test", mystring);
>
> This is with g++ (on Solaris as it happens). This is perfectly
> allowable in Visual C++ on Windows.
>
> What do I need to do? I don't intend to instantiate the CReg class at
> any point in the program
Can you post a complete program? The problem isn't with what you've
shown, although its sounds like g++ doesn't think the member is static.