FWIW, you can try moving virtual function definitions out of header files, as defining virtual functions inside headers is generally a bad idea.
(The story is much longer than that. Since the RTTI data of a polymorphic class is linked/exported/whatever with one of its virtual functions, specific mechanisms that rely on RTTI - dynamic_cast, exceptions, etc - might fail if RTTI of the same class is used across dynami clibrary boundaries.) ------------------ Best regards, lh_mouse 2015-05-21 ------------------------------------------------------------- 发件人:Etienne Sandré-Chardonnal <[email protected]> 发送日期:2015-05-21 19:40 收件人:mingw-w64-public 抄送: 主题:Re: [Mingw-w64-public] Multiple definition issue with -flto, MinGW-w64 4.9.1 This was a mistake from my last post. The -flto was passed to the linker, and I get this error. You didn't specify -flto in your linker command line. Add that and try again. > > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
