Hello <div><br></div><div>I had the exact same problem </div><div><br></div><div>The problem is that there are two float.h in your system and they are being found on the wrong order.</div><div>gcc float.h has the standard definitions while mingw float.h has also the win32 required extensions.</div>
<div><br></div><div>Also, mingw's float.h has an <b style> # include_next <float.h></b><span style> that tells your compiler to look forward for an additional float.h. However, gcc's float.h does not include such directive. So if your compiler finds gcc's float.h first, you will be lacking the definitions of some symbols.</span></div>
<div><span style><br></span></div><div><span style>Just search for gcc's float.h (mine was in <MINGW_DIR></span><font color="#222222" face="arial, sans-serif">\lib\gcc\mingw32\<GCC_VERSION>\include\float.h) and add an #include_next<float.h></font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">This should resolve your compilation issues.</font></div><div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">Regards</font></div><div><br><br><div class="gmail_quote">On Mon, Jan 23, 2012 at 1:23 PM, janeyw <span dir="ltr"><<a href="mailto:janeywit@gmail.com">janeywit@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to build ITK4 with eclipse and mingw on a Win7 machine (32 bit).<br>
I have cmake, eclipse and mingw are all latest versions downloaded within<br>
the last couple of days.<br>
The eclipse build is failing with errors as shown in this image:<br>
<a href="http://i814.photobucket.com/albums/zz65/janeyw/build.png" target="_blank">http://i814.photobucket.com/albums/zz65/janeyw/build.png</a><br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n7216078/build.png" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n7216078/build.png</a><br>
Google is not helping me, does anybody have any suggestions?<br>
Many thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Problems-building-ITK-4-eclipse-mingw-tp7216078p7216078.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Problems-building-ITK-4-eclipse-mingw-tp7216078p7216078.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>
</div>