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

Garjola garjola at garjola.net
Thu Dec 19 03:48:59 EST 2013


Garjola <garjola at garjola.net> wrote:
> 
> 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.
>

Well, it made no difference.

I am aware of patches that were needed for gcc 4.6 (circa 2011), but I am assuming that this has been solved since.

Any hint is welcome.

Thanks again.

Garjola

> 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