[Bug c++/80469] Undefined symbol for abstract class impl with -fvisibility=hidden

theubik at mail dot ru gcc-bugzilla@gcc.gnu.org
Thu Apr 20 12:07:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80469

--- Comment #5 from Ubikovich <theubik at mail dot ru> ---
(In reply to Markus Trippelsdorf from comment #4)
> (In reply to Ubikovich from comment #3)
> > >> You need to provide the definition of dothis() somewhere.
> > 
> > There is the definition:
> > 
> > // subimpl.cpp
> > #include "subimpl.h"
> > void A::dothis() {}
> 
> Yeah, put "__attribute__ ((visibility("default")))" above it and you're done.

Why if move implement of A::a() to subimpl.cpp it not reproduced?


More information about the Gcc-bugs mailing list