[ITK Community] ITK with -std=c++11

Garjola garjola at garjola.net
Thu Dec 19 02:10:25 EST 2013


Matt McCormick <matt.mccormick at kitware.com> wrote:
> 
> Hi Garjola,
>
> What version of ITK?
>

I am using 4.4.2.

In the meantime, I found this:

//Enable C++0x standard extensions
VCL_INCLUDE_CXX_0X:BOOL=ON

But the build is still going on.

Thanks.

Garjola.

> Thanks,
> Matt
>
>
> On Wed, Dec 18, 2013 at 5:22 PM, Garjola <garjola at garjola.net> wrote:
>> Dear all,
>>
>> I have been trying to build ITK with gcc 4.8.2 and using -std=c++11. I succeeded with the compile step (I had to add -fpermissive) but now I am having errors when using some vnl classes.
>>
>> The errors are related to missing 'constexpr':
>>
>> Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:387:60:
>> error: ‘constexpr’ needed for in-class initialization of static data
>> member ‘const float vnl_numeric_traits<float>::zero’ of non-integral
>> type [-fpermissive]
>>    static const float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);
>>
>> Has anybody met this kind of error and is there any workaround?
>>
>> Thank you.
>>
>> Garjola.
>>
>> --
>> Dr. Dindi
>> Dad, Philosopher, Hacker
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
-- 
Dr. Dindi
Dad, Philosopher, Hacker



More information about the Community mailing list