From: Luke Dunstan <coder_infidel@ho...> - 2003-02-21 01:11:18
>From: "Kevin Wooten" <kwooten@...>
>Subject: [Mingw-users] gcc 3.2 and VC++ exceptions
>Date: Thu, 20 Feb 2003 15:52:27 -0700
>Does it already, or is there a way to make g++ and vc++ exception
>handling scheme compatible?
>Making it possible to throw an exception
>from a DLL created in g++ and receive it in an app created by vc++ (or
>vice versa). If not how much work is involved it making it happen??
The first problem is the exception mechanism. I have heard that VC++
exceptions are implemented using Windows Structured Exception Handling, and
the ReactOS project has been working on adding support for SEH to GCC, but I
don't know the status of this effort. However, I would expect that the
mechanism for C++ exceptions requires further additional support above SEH,
but you would need to know the exact implementation details to know how much
work would be involved. Is this even documented for C++?
The other problem is the general binary incompatibility between the two
compilers regarding the memory layout of C++ objects and features like RTTI.
I am only guessing but I think it would be very difficult to make GCC
compatible in this way.
MSN Instant Messenger now available on Australian mobile phones. Go to