[cfe-dev] Linker error and obfuscated name

Reid Kleckner rnk at google.com
Mon Aug 3 10:45:20 PDT 2015


On Mon, Aug 3, 2015 at 9:56 AM, Edward Diener <
eldlistmailingz at tropicsoft.com> wrote:

> // ex_exception.hpp
>
> #ifndef EX_EXCEPTION_HPP
> #define EX_EXCEPTION_HPP
> #include <exception>
> #include "ex_decl.hpp"
> class EX_VISIBLE ex_exception :
>

I think this class should probably be dllexported. It's possible that mingw
looks at class visibility as well as dllexport attributes when deciding
whether or not to expor tthe RTTI for classes, but I'm pretty sure clang
doesn't. We could add that check for compatibility. Is there a compelling
reason to not use dllexport on the entire class here?


>     public virtual std::exception
> {
> private:
>     char m_buffer[128];
> protected:
>     EX_DECL unsigned int append(unsigned int l, const char * a);
>     EX_DECL ex_exception() ;
> public:
>     typedef enum {
>       no_exception,
>       other_exception
>     } ex_exception_code;
>     ex_exception_code code;
>     EX_DECL ex_exception(ex_exception_code c,const char * e1 = 0,const
> char * e2 = 0) ;
>     EX_DECL ex_exception(ex_exception const &) ;
>     virtual EX_DECL ~ex_exception() throw() ;
>     virtual EX_DECL const char * what() const throw() ;
> };
> #endif // EX_EXCEPTION_HPP
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150803/ce851515/attachment.html>


More information about the cfe-dev mailing list