<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Nick,<div><br></div><div>I was a little too specific with the flag to look for in my prior e-mail</div><div><br></div><div>The error message you are getting is coming from here[1]. Which used the VECL_STATIC_CONST_INIT_FLOAT_DECL macro defined here[2]. CMake does some try compile to see if this in class declaration of double is supported during your initial configuration when ITK is first built. If it's detected that the compiler supports, then when ever ITK is used this feature is enabled.</div><div><br></div><div>Something changed with your compiler, like some addition or removal of flag, which changed the support of the feature.</div><div><br></div><div>Hope that helps,</div><div>Brad</div><div><br></div><div>[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h#L387">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h#L387</a></div><div>[2] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h.in#L138-L159">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h.in#L138-L159</a></div><div><br><div><div>On Jul 30, 2014, at 11:47 AM, Nick Patterson <<a href="mailto:pattersonnp.work@gmail.com">pattersonnp.work@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div apple-content-edited="true">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Dear Brad,</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="Apple-tab-span" style="white-space:pre"> </span>I’m afraid I made no further progress to report on the compilation of my application. It’s very curious. I even tried to roll back to ITK 4.5.2 (rather than the newer 4.6) but I am receiving similar errors. I have no issues with compiling this code on my Macbook… just on my linux box.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Regards, Nick.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div></div><div><div>On 29 Jul 2014, at 22:20, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>Is any of your code monkeying around with the "-std=c++11" flags? Did you compile ITK or your application with it?<br><br>Brad<br><br>On Jul 29, 2014, at 10:59 AM, Nick Patterson <<a href="mailto:pattersonnp.work@gmail.com">pattersonnp.work@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi,<br> Can I ask if anybody has the following error when compiling code which makes use of ITK? The complilation of ITK was fine, this is an error produced when compiling against ITK in my own application.<br><br>The error that I am currently getting is:- (Building on Ubuntu Linux). <br><br><br>In file included from /usr/local/include/ITK-4.5/vnl/vnl_c_vector.h:26:0,<br> from /usr/local/include/ITK-4.5/vnl/vnl_vector.h:22,<br> from /usr/local/include/ITK-4.5/vnl/vnl_vector_ref.h:20,<br> from /usr/local/include/ITK-4.5/itkVector.h:23,<br> from /usr/local/include/ITK-4.5/itkPoint.h:23,<br> from /usr/local/include/ITK-4.5/itkContinuousIndex.h:21,<br> from /usr/local/include/ITK-4.5/itkImageRegion.h:34,<br> from /usr/local/include/ITK-4.5/itkImageIORegion.h:24,<br> from /usr/local/include/ITK-4.5/itkImageIOBase.h:26,<br> from /usr/local/include/ITK-4.5/itkImageFileReader.h:22,<br> from /usr/local/include/ITK-4.5/itkImageSeriesReader.h:26,<br> from /home/nppatt/Raydose2/RaydoseNew/src/Simulation/RaydoseNMImageData.cpp:2:<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:387:27: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:387:27: warning: ISO C++ forbids initialization of member constant 'zero' of non-integral type 'const float' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:389:26: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:389:26: warning: ISO C++ forbids initialization of member constant 'one' of non-integral type 'const float' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:391:29: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:391:29: warning: ISO C++ forbids initialization of member constant 'maxval' of non-integral type 'const float' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:410:28: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:410:28: warning: ISO C++ forbids initialization of member constant 'zero' of non-integral type 'const double' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:412:27: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:412:27: warning: ISO C++ forbids initialization of member constant 'one' of non-integral type 'const double' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:414:30: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:414:30: warning: ISO C++ forbids initialization of member constant 'maxval' of non-integral type 'const double' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:433:33: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:433:33: warning: ISO C++ forbids initialization of member constant 'zero' of non-integral type 'const long double' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:435:32: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:435:32: warning: ISO C++ forbids initialization of member constant 'one' of non-integral type 'const long double' [-pedantic]<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:437:35: error: floating-point literal cannot appear in a constant-expression<br>/usr/local/include/ITK-4.5/vnl/vnl_numeric_traits.h:437:35: warning: ISO C++ forbids initialization of member constant 'maxval' of non-integral type 'const long double' [-pedantic]R<br><br><br>Regards, Nick<br>_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org">Community@itk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/community">http://public.kitware.com/mailman/listinfo/community</a><br></blockquote><br></blockquote></div><br></div></blockquote></div><br></div></body></html>