[Insight-developers] MINGW build error -- itkFloatingPointExceptions.cxx causes errors

Matt McCormick matt.mccormick at kitware.com
Mon Nov 19 16:06:11 EST 2012


Hi Kent,

On Mon, Nov 19, 2012 at 8:51 PM, Williams, Norman K
<norman-k-williams at uiowa.edu> wrote:
> I know that people use MinGW with ITK, there are dashboards for it.
>
> But I just downloaded the current MinGW environment, and tried to build
> ITK master as of today, and it fails to compile
> itkFloatingPointExceptions.cxx in Core/Common/src, because it can't find
> the _EM_<error> symbols or _controlfp.
>
> Is there a secret to doing this?

Yes, there is.  Place

#ifdef __MINGW32__
# include_next <float.h>
#endif

at the end of lib/gcc/mingw32/4.7.0/include/float.h

This should be pushed upstream GCC at some point...

HTH,
Matt

> --
> Kent Williams norman-k-williams at uiowa.edu
>
>
>
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> ________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list