snapshot 20010514: dllexport and C++ constructors

Eberhard Mattes mattes@azu.informatik.uni-stuttgart.de
Mon May 28 06:19:00 GMT 2001


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



More information about the Gcc-bugs mailing list