Re: error: definition of static data member '%s' of dllimport'd class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
Hmm
not sure about VariablesImpl* m_Impl;
it's only changes declaration an using

Idea - useng common header file - and Implementation
isolated from another piece of code (onlu header)
so - it's ok in iv VC6
but - where is point under GCC ?
in previously GCC build I see some bug about static member - in Changes log
declared as fixed
----- Original Message ----- 
From: "Eljay Love-Jensen" <eljay@xxxxxxxxx>
To: "Aleksei Andevis" <aleksei@xxxxxxxxxx>; <gcc-help@xxxxxxxxxxx>
Sent: Tuesday, February 03, 2004 5:16 PM
Subject: Re: error: definition of static data member '%s' of dllimport'd
class


> Hi Aleksei,
>
> If I'm not mistaken, I believe you need more than a forward declaration to
VariablesImpl in the header file.
>
> That is to say, you need the fully specified declaration of VariablesImpl
BEFORE the "static VariablesImpl m_Impl;" declaration in the header file.
>
> One way around this would be to use "static VariablesImpl* m_Impl;" in the
header file, instead.
>
> HTH,
> --Eljay
>
>
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux