<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Brad,<br>
<br>
ITK was not compiled when I tried this...<br>
The only thing, I did is to configure once the project without the
definitions, and a second time with the definitions.<br>
<br>
Could that be the reason?<br>
<br>
Thanks,<br>
Arnaud<br>
<br>
On 05/09/2012 02:31 PM, Bradley Lowekamp wrote:
<blockquote
cite="mid:80CA90E4-83DD-4FF3-AFAB-2962D0321162@mail.nih.gov"
type="cite">Hello Arnaud,
<div><br>
</div>
<div>Would this be after you compiled ITK with out this flag, and
then had a project using ITK where this flag was added?</div>
<div><br>
</div>
<div>Brad</div>
<div><br>
</div>
<div><br>
<div>
<div>On May 9, 2012, at 8:00 AM, Arnaud Gelas wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hi all,<br>
<br>
When doing cmake -DCMAKE_CXX_FLAGS=-std=gnu++0x
/path/to/ITK && make<br>
-j8, I get compilation errors in vnl_math (see below).<br>
<br>
gcc version: 4.6.3<br>
cmake version: 2.8.7<br>
<br>
What would be the best way to fix these errors?<br>
<br>
Thanks,<br>
Arnaud<br>
<br>
---<br>
<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:87:27:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘e’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:88:31:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘log2e’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:89:32:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘log10e’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:90:29:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘ln2’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:91:30:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘ln10’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:92:28:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘pi’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:93:35:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘pi_over_2’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:94:35:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘pi_over_4’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:95:37:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘one_over_pi’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:96:37:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘two_over_pi’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:97:41:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘two_over_sqrtpi’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:98:42:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘one_over_sqrt2pi’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:99:31:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘sqrt2’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:100:33:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘sqrt1_2’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:101:31:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘euler’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:104:29:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘eps’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:105:33:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘sqrteps’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:107:34:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘float_eps’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.h:108:38:<br>
error: ‘constexpr’ needed for in-class initialization of
static data<br>
member ‘float_sqrteps’ of non-integral type<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:84:24:<br>
error: ‘const double vnl_math::e’ is not a static member
of ‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:84:14:<br>
error: uninitialized const ‘vnl_math::e’ [-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:85:24:<br>
error: ‘const double vnl_math::log2e’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:85:14:<br>
error: uninitialized const ‘vnl_math::log2e’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:86:24:<br>
error: ‘const double vnl_math::log10e’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:86:14:<br>
error: uninitialized const ‘vnl_math::log10e’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:87:24:<br>
error: ‘const double vnl_math::ln2’ is not a static member
of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:87:14:<br>
error: uninitialized const ‘vnl_math::ln2’ [-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:88:24:<br>
error: ‘const double vnl_math::ln10’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:88:14:<br>
error: uninitialized const ‘vnl_math::ln10’ [-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:89:24:<br>
error: ‘const double vnl_math::pi’ is not a static member
of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:89:14:<br>
error: uninitialized const ‘vnl_math::pi’ [-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:90:24:<br>
error: ‘const double vnl_math::pi_over_2’ is not a static
member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:90:14:<br>
error: uninitialized const ‘vnl_math::pi_over_2’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:91:24:<br>
error: ‘const double vnl_math::pi_over_4’ is not a static
member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:91:14:<br>
error: uninitialized const ‘vnl_math::pi_over_4’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:92:24:<br>
error: ‘const double vnl_math::one_over_pi’ is not a
static member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:92:14:<br>
error: uninitialized const ‘vnl_math::one_over_pi’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:93:24:<br>
error: ‘const double vnl_math::two_over_pi’ is not a
static member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:93:14:<br>
error: uninitialized const ‘vnl_math::two_over_pi’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:94:24:<br>
error: ‘const double vnl_math::two_over_sqrtpi’ is not a
static member<br>
of ‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:94:14:<br>
error: uninitialized const ‘vnl_math::two_over_sqrtpi’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:95:24:<br>
error: ‘const double vnl_math::one_over_sqrt2pi’ is not a
static member<br>
of ‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:95:14:<br>
error: uninitialized const ‘vnl_math::one_over_sqrt2pi’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:96:24:<br>
error: ‘const double vnl_math::sqrt2’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:96:14:<br>
error: uninitialized const ‘vnl_math::sqrt2’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:97:24:<br>
error: ‘const double vnl_math::sqrt1_2’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:97:14:<br>
error: uninitialized const ‘vnl_math::sqrt1_2’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:98:24:<br>
error: ‘const double vnl_math::euler’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:98:14:<br>
error: uninitialized const ‘vnl_math::euler’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:101:24:<br>
error: ‘const double vnl_math::eps’ is not a static member
of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:101:14:<br>
error: uninitialized const ‘vnl_math::eps’ [-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:102:24:<br>
error: ‘const double vnl_math::sqrteps’ is not a static
member of ‘class<br>
vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:102:14:<br>
error: uninitialized const ‘vnl_math::sqrteps’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:105:23:<br>
error: ‘const float vnl_math::float_eps’ is not a static
member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:105:13:<br>
error: uninitialized const ‘vnl_math::float_eps’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:106:23:<br>
error: ‘const float vnl_math::float_sqrteps’ is not a
static member of<br>
‘class vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:106:13:<br>
error: uninitialized const ‘vnl_math::float_sqrteps’
[-fpermissive]<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:<br>
In static member function ‘static double
vnl_math::angle_0_to_2pi(double)’:<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:291:16:<br>
error: ‘pi’ is not a member of ‘vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:292:28:<br>
error: ‘pi’ is not a member of ‘vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:294:12:<br>
error: ‘pi’ is not a member of ‘vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:294:47:<br>
error: ‘pi’ is not a member of ‘vnl_math’<br>
/home/ajg23/DEVEL/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_math.cxx:304:21:<br>
error: ‘pi’ is not a member of ‘vnl_math’<br>
make[2]: ***<br>
[Modules/ThirdParty/VNL/src/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.cxx.o]<br>
Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information
visit:<br>
<a class="moz-txt-link-freetext" href="http://kitware.com/products/protraining.php">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-developers">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</div>
</blockquote>
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="border-collapse: separate;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0);
font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal;
-webkit-text-decorations-in-effect: none; text-indent:
0px; -webkit-text-size-adjust: auto; text-transform: none;
orphans: 2; white-space: normal; widows: 2; word-spacing:
0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px; color: rgb(0, 0,
0); font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
-webkit-text-decorations-in-effect: none; text-indent:
0px; -webkit-text-size-adjust: auto; text-transform:
none; orphans: 2; white-space: normal; widows: 2;
word-spacing: 0px; ">
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3">========================================================</font></p>
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3">Bradley
Lowekamp<span class="Apple-converted-space"> </span><span
class="Apple-converted-space"> </span></font></p>
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3">Medical
Science and Computing for</font></p>
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3">Office of
High Performance Computing and Communications</font></p>
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3">National
Library of Medicine<span
class="Apple-converted-space"> </span></font></p>
<p style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; "><font
style="font: normal normal normal 12px/normal
Helvetica; " face="Helvetica" size="3"><a
moz-do-not-send="true"
href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p>
<br class="Apple-interchange-newline">
</span></div>
</span></span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>