C++, exceptions, SJLJ, Dwarf2

Farkas Levente lfarkas at lfarkas.org
Mon Nov 10 21:09:08 UTC 2008


Richard W.M. Jones wrote:
> Anyone got any idea about this?
> 
> http://www.reddit.com/r/programming/comments/7cbjv/windows_cross_compiler_proposed_feature_for/c06ab3w
> 
>   One question, for C++ do you use SJLJ or Dwarf2 exceptions? I have
>   switched the compiler to DW2 recently.
> 
>   Also, one pitfall that has hit us, and that you need to avoid, is the
>   inability for C++ exceptions to cross DLL boundaries. You need to
>   provide support for that from the ground up, before you get too loaded
>   down with DLL's which can't support exceptions.
> 
>   Here [http://inkscape.modevia.com/] is the stuff we use daily. The
>   compilers and "lib bundles" are located in win32libs.

from this description:
http://www.tdragon.net/recentgcc/
i prefer to still use sjlj as the default.
may be later can be include some kind of mechanism if build c++ dll to
build both sjlj and dwarf2 dll too eg. libx-sjlj.dll, libx-dw2.dll and a
libx.dll.a link to the default one.

-- 
  Levente                               "Si vis pacem para bellum!"



More information about the mingw mailing list