Re: tm vs. std:.tm type in symbol name of std::time_put<>::put()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Sep 2017, Johan Alfredsson wrote:

OK, thanks.

Is there a workaround for this issue on the gcc user side? (I guess I could
always avoid using libstdc++ and go with libc++ instead.) I don't have any
constraints when it comes to ABI breakage.

Then the easiest is for you to patch gcc so it mangles "normally" (remove the line #define TARGET_CXX_DECL_MANGLING_CONTEXT solaris_cxx_decl_mangling_context in gcc/config/sol2.h) and rebuild. Some alternatives are to hack the system headers so tm gets declared in the global namespace, or to provide aliases for all the libstdc++ symbols that involve tm/ldiv_t/...


--
Marc Glisse



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux