Boost logo

Boost-Build :

Subject: Re: [Boost-build] Would like help debugging MinGW problem
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-04-19 13:08:30


On Monday 19 April 2010 20:08:07 Jeremiah Willcock wrote:

> The regression test libs/graph/test/graphviz_test.cpp is failing on all
> MinGW platforms by throwing an unhandled exception. The code is supposed
> to throw an exception, but it is wrapped in a try block that specifically
> catches the exception being thrown; this code is around line 193 in the
> test case. The test passes on almost all other platforms, including other
> GCC configurations and VC++ on Windows. Is this a problem in the
> platform? Are there known issues with exceptions on MinGW?
> <URL:http://wiki.netbeans.org/MinGWInCCDevelopmentPack> suggests that the
> compiler needs -mthreads for exceptions to work properly. Does the
> regression test (that doesn't use threads) work with this flag?

If you use <threading>multi for your tests, that flag will be used (and
that's what the flag actually does). I don't know whether exceptions
and multithreading are really mixed like that on mingw.

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk