Hi Luis,<br><br>Will you please check the file? There are two successive #if defined(VCL_BORLAND) sections, I deleted the offending section of #if defined(VCL_BORLAND) at the bottom and left the top section alone. Now it maybe wrong of me, but I couldn&#39;t figure out why somebody had left two almost identical #if defined(VCL_BORLAND) sections. And why is gcc going into those sections?<br>
<br>It compiled taht particular file okay.<br><br>It is giving some other compile problem. <br><br>[ 51%] Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o<br>In file included from /home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:14:<br>
/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_header.h:43: error: expected unqualified-id before &#39;__extension__&#39;<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_matlab_write.cxx:180: error: expected `}&#39; at end of input<br>
gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_matlab_write.o] Error 1<br>gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2<br>gmake: *** [all] Error 2<br><br>Is it possible for somebody to try and compile on OpenBSD -current in a virtual machine? Its compiler  (which is a gcc 4.2.1) is causing problems which didn&#39;t happen on Opensolaris (many versions) or Ubuntu or Windows XP or WIndows 2003 Server or Windows 7.<br>
<br>Thanks<br><br><div class="gmail_quote">On Sat, Aug 21, 2010 at 7:37 PM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Amit,<br><br>The error in line 233:<br><br>#elif !defined(VNL_HAS_NO_FINITE)<br>//: Return true if x is inf<br>bool vnl_math_isinf(float x) { return !finitef(x) &amp;&amp; !isnan(x); }  &lt;&lt;&lt;&lt;---233<br>//: Return true if x is inf<br>

bool vnl_math_isinf(double x) { return !finite(x) &amp;&amp; !isnan(x); }<br>//: Return true if x is inf<br>bool vnl_math_isinf(long double x) { return !finitel(x) &amp;&amp; !isnan(x); }<br>#else<br><br><br>seems to be related to the symbol VNL_HAS_NO_FINITE<br>

that is defined in line<br><br>#else<br># warning finite() is not declared on this platform<br># define VNL_HAS_NO_FINITE<br>#endif<br><br>at then of a cascade of platforms, that include<br>Borland, SysV, HPUX....<br><br>

I would suspect that you should insert another<br>case there, in order to address the specific<br>features of FreeBSD.<br><br><br>If you find it,  please let us know, so we can<br>fix the version in the repository as well.<br>

<br><br>     Thanks,<br><br><br>          Luis<br><br><br>-----------------------------------------------------------<br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Aug 20, 2010 at 2:11 PM, Amit Kulkarni <span dir="ltr">&lt;<a href="mailto:amitkulz@gmail.com" target="_blank">amitkulz@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hello,<br><br>I grabbed latest tar.gz of ITK 3.20 and I am getting this error on OpenBSD 4.8 (-current) with gcc 4.2.1. I got feedback from Emmanuel @ otb-users to try and see if its ITK related compile issue.<br>

<br>Please can somebody help me out with the proper #ifdef?<br>
<br>Thanks<br><br><br>[ 52%] Building CXX object Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function &#39;bool vnl_math_isinf(float)&#39;:<br>


/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:233: error: &#39;isnan&#39; was not declared in this scope<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function &#39;bool vnl_math_isinf(double)&#39;:<br>


/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:235: error: &#39;isnan&#39; was not declared in this scope<br>/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx: In function &#39;bool vnl_math_isinf(long double)&#39;:<br>


/home/amit/rsgis/InsightToolkit-3.20.0/Utilities/vxl/core/vnl/vnl_math.cxx:237: error: &#39;isnan&#39; was not declared in this scope<br>gmake[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o] Error 1<br>

gmake[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2<br>
gmake: *** [all] Error 2<br><br>
<br></div></div>_____________________________________<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>
<br></blockquote></div><br>
</blockquote></div><br>