Hi Tai,

Thanks for looking into this. You are correct the right frontend should be
used, however this isn't the root of the problem.
It works since g++ defaults to -shared-libgcc while gcc defaults to
-static-libgcc.
If you force g++ to static link libgcc, the exception is still uncaught:

  g++ -static-libgcc a.cpp -lstdc++ & a

Yaron


2014-08-25 0:18 GMT+03:00 Kai Tietz <ktiet...@googlemail.com>:

> Hi Yaron,
>
> I can't reproduce your reported issue by using proper frontends.  You
> shouldn't use gcc frontend.  Instead use g++.  Later automatically
> adds proper link-libraries for c++ automatically.  So you don't need
> to add -lstdc++ manual.
>
> By using 'g++ -o a a.cpp && ./a' it works for me as expected.
>
> Kai
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to