This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
snapshot 20010514: dllexport and C++ constructors
- To: gcc-bugs at gcc dot gnu dot org
- Subject: snapshot 20010514: dllexport and C++ constructors
- From: Eberhard Mattes <mattes at azu dot informatik dot uni-stuttgart dot de>
- Date: Mon, 28 May 2001 15:19:31 +0200 (MET DST)
G++ snapshot 20010514 ignores dllexport for C++ constructors:
//////////////////////////////////////////////////////////////////////////////
class foo
{
public:
foo ();
void bar ();
};
__attribute__((dllexport)) foo::foo() { }
__attribute__((dllexport)) void foo::bar () { }
//////////////////////////////////////////////////////////////////////////////
foo::bar() will be exported, foo::foo() won't. This problem occurs
both for --target=arm-epoc-pe and --target=i686-pc-cygwin, on a
i686-pc-linux-gnu host.
--
Eberhard Mattes