[Insight-users] ITK 2.8.1 compile error on Mac OS X
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Sat Oct 14 05:15:57 EDT 2006
Hi,
You should find what you need in that thread:
http://public.kitware.com/pipermail/insight-users/2006-August/019235.html
Replace
#define isnan(x) __isnand((double)x)
by
#define isnan(x) std::isnan(x)
in vnl_math.cxx, line 66
Gaetan
Le Sat, 14 Oct 2006 10:52:42 +0200, <zhou13 at netscape.net> a écrit:
> Dear List:
> I can't compile ITK 2.8.1 ( and all previous versions ) on Mac OS X
> 10.4.8 (Simplified Chinese Version)
> I have installed Xcode 2.4 and the gcc version is 4.0.1.
> Can some one forward this bug report to ITK developer list because i am
> not subscriber of that list
> Thanks.
> Enclosure: Detailed Error messages.
> [ 30%] Building CXX object
> Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(float)':
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:221:
> error: '__isnand' was not declared in this scope
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(double)':
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:223:
> error: '__isnand' was not declared in this scope
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:
> In function 'bool vnl_math_isinf(long double)':
> /Users/zhou/www.itk.org/files/v2.8/InsightToolkit-2.8.1/Utilities/vxl/core/vnl/vnl_math.cxx:225:
> error: '__isnand' was not declared in this scope
> make[2]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o]
> Error 1
> make[1]: *** [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
> make: *** [all] Error 2
> ________________________________________________________________________
> Check Out the new free AIM(R) Mail -- 2 GB of storage and
> industry-leading spam and email virus protection.
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-users
mailing list