JonY <[email protected]> writes:

> On 9/11/2010 01:22, Sébastien Villemot wrote:

>> After some experimentation, it appears that my problem is much more
>> generic than what I had initially thought, and has no relation to
>> MATLAB. It seems to systematically happen when a C++ exception is thrown
>> by a DLL compiled using Visual C++ (x64) and linked to an executable
>> compiled using MinGW-w64 (x64-targeted).

[…]

> you cannot throw exceptions between different C++ compilers due to difference
> in ABI and implementation. The C++ standard is deliberately vague on ABI.
>
> This is a known issue, but not a bug.

I was aware of this issue but for some reason I thought that MinGW-w64
aimed at being compatible with other compilers' exception handling.

At least, on 32-bit, the compatibility seems good because I have no
problem passing C++ exceptions between my MinGW-compiled DLL and MATLAB
binary objects (which are clearly not compiled with MinGW).

Best,

-- 
Sébastien Villemot
CEPREMAP — http://www.cepremap.ens.fr
Dynare project — http://www.dynare.org
Phone: +33 1 40 77 49 90
PGP Key: 0xA6C029B9D06B2913D71C105EBE37E801FB6EFF8B (http://pgp.mit.edu/)

Attachment: pgpcBa62YhBwI.pgp
Description: PGP signature

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to