[Insight-users] make error with itkvnl when building itk2.8.1
Angela Wang
angela.y.wang at hsc.utah.edu
Tue Oct 10 13:02:33 EDT 2006
I ended up using a solution from
http://lists.apple.com/archives/xcode-users/2006/Aug/msg00630.html
#if defined(__APPLE__)
#if (__GNUC__ >= 4)
#include <cmath>
#define isnan(x) std::isnan(x)
#else
#include <math.h>
#define isnan(x) __isnand((double)x)
#endif
#endif
and it worked beautifully!
Thanks for the help!
Angela
Obada Mahdi wrote:
> Hi Angela,
>
> Angela.Y Wang wrote:
>> I made the change to vnl_math.cxx and am now getting the following
>> errors. I have just started learning how to use ITK and don't think I
>> can make the necessary changes. Any suggestions on what to do next
>> would be really appreciated.
>>
> it might just be a typo:
>> Scanning dependencies of target itkvnl
>> [ 56%] Building CXX object
>> Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
>> /developer/itk/Utilities/vxl/core/vnl/vnl_math.cxx: In function 'bool
>> vnl_math_isinf(float)':
>> /developer/itk/Utilities/vxl/core/vnl/vnl_math.cxx:221: error:
>> '__inline__isnand' was not declared in this scope
>>
> The actual name of the symbol is "__inline_isnand" -- note that there
> are two underscores at the beginning, and only one in the middle.
> I have to admit that "_" and "__" are hard to distinguish with most
> fonts if you do not know what to look for :-)
>
> Please try again with "__inline_isnand" and see if it works. If it does
> not help, get back to me (or, even better, the mailing list, so others
> can contribute, too).
>
>
> Regards
>
> Obada
>
>
More information about the Insight-users
mailing list