<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>It sounds like you did not configure ITK with C++11. If you are going to enable C++11 when using ITK, you must configure ITK with C++11.</div><div><br></div><div>Please start with an empty build directory and add the following to the command line to enable C++11 of the initial configuration: "-D<span style="background-color: rgb(255, 255, 255); font-size: 14px;">CMAKE_CXX_FLAGS:STRING=-std=c++11". This variable must be set before the first configuration.</span></div><div><span style="background-color: rgb(255, 255, 255); font-size: 14px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255); font-size: 14px;">HTH,</span></div><div><span style="background-color: rgb(255, 255, 255); font-size: 14px;">Brad</span></div><div><br><div><div>On Jun 9, 2015, at 7:30 AM, Pierre Barbier de Reuille <<a href="mailto:pierre@barbierdereuille.net">pierre@barbierdereuille.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div><div><div>Dear all,<br><br></div>I am using ITK in a software
that I am compiling with MinGW64 with C++11 enabled. ITK mostly
compiles, with one exception: vnl_math.cxx has hard-coded the definition
of finite which is not valid if C++11 is enabled. I attach a patch of
my modifications against the git repository. The modification simply
specifies that, if we're compiling with C++11, then we should be using
"std::isfinite" instead of "finite".<br><br></div>Of course, if there
was a way to compile it without this hack, I would be happy to revert
it! Otherwise, could it be tested and included in the next versions of
ITK?<br><br></div>Thanks,<br><br></div>Pierre</div>
<span><mingw_math.patch></span>_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org">Community@itk.org</a><br>http://public.kitware.com/mailman/listinfo/community<br></blockquote></div><br></div></body></html>