Hello Maxime, hello mingw-users,
Maxime Lecourt schrieb:
> >> Shared libgcc: If all modules are linked with -shared-libgcc, exceptions
> >> can be thrown accross DLL boundaries.
> >> Adding -shared-libgcc to linker didn't help, though. And I could find
> >> that libgcc.dll either.
> > Actually, by default you get the dynamic libgcc. [...]
> I did a little example
> Compiled in Linux, application can't get the exception (terminate called
> after throwing an instance of 'A').
> Apparently, under Linux it is statically linked, so exception are
This depends, like Earnie pointed out, not so much on the Linux but more
on the specific build of your compiler, which is your distributions'
responsibility. Unfortunately, some distributions choose to build their
mingw cross compilers with --disable-shared, which creates the issue you
I've fixed that issue for my builds for Debian's gcc-mingw32 and
gcc-mingw-w64, and it is a really small patch.
Best regards, Steve
Steve Wolter (Univ. of Würzburg)| Web page: http://swolter.sdf1.org
| vCard: http://swolter.sdf1.org/swolter.vcf
A witty saying proves nothing. | Schedule: http://swolter.sdf1.org/sched.cgi
-- Voltaire (1694-1778) | E-mail: swolter@...