>>Try rebuilding your cross compiler with support for shared runtimes.

Thank you.  That worked.

On Thu, Jan 27, 2011 at 5:05 PM, Charles Wilson <cwilso11@users.sourceforge.net> wrote:
On 1/27/2011 4:44 PM, Jack Ambler wrote:
> On windows g++ -v gives this:
> --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp
> On linux, g++ -v gives this:
> --with-gcc --with-gnu-ld --with-gnu-as --disable-nls --disable-shared
IIRC at present, in order to throw exceptions across the DLL boundary,
you must link against a shared version of libgcc/libstdc++ (*).  Since
your cross compiler is not configured to even HAVE shared versions of
those runtimes, that compiler always generates executables that link
against the static runtime libs.

Try rebuilding your cross compiler with support for shared runtimes.

(*) At least, with stock gcc.  TDM's builds have a forward port of the
(ugly, horrid, ABI-breaking) 3.4.5 patch that allowed to throw
exceptions across DLL boundaries even when linking to the static
runtimes.  This ugliness was *necessary* in 3.4.5, because we could not
at the time build the runtimes as shared libs -- but everybody,
including the author of that patch, said that The Right Thing To Do was
to build the runtimes as DLLs.  Now that 4.x CAN do that, the horrid
patch was dropped since it is no longer *necessary* -- with the effects
you see: if you link with static runtimes, you can't throw exc across
dll boundary.  But...you can use the DLL runtimes instead...


Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
MinGW-users mailing list

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe