Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - some more __declspec issues
All four classes look quite similar, but DM only generates the same code for C and D. And I guess that the STLport library expects that all four cases are identical (and generate the same code as C and D). struct A { __declspec(dllimport) static int a; }; int A::a; struct B { __declspec(dllimport) static int b; }; struct C { __declspec(dllimport) static int c; }; __declspec(dllimport) int C::c; struct D { __declspec(dllimport) static int d; }; int main() { A a; B b; C c; D d; return a.a + b.b + c.c + d.d; } int B::b; bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net? Jul 29 2002
Fixed and posted as 8.29.20 beta. -Walter "Christof Meerwald" <cmeerw web.de> wrote in message news:ai4500$dfj$1 digitaldaemon.com...All four classes look quite similar, but DM only generates the same code Jul 29 2002
|