[ITK] [ITK-users] C++11?

Becksfort, Jared Jared.Becksfort at STJUDE.ORG
Sat Apr 12 23:41:05 EDT 2014


Hello,

I was hoping to build the 4.5.2 with C++11.  Are there instructions for doing so?  I tried adding

ADD_DEFINITIONS(
    -std=c++11
)

to the CMakeLists.txt file, which felt like a hack and didn't work:

Scanning dependencies of target itksys
[ 21%] Building C object Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
make[2]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/ProcessUNIX.c.o] Error 1
make[1]: *** [Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Jared

Email Disclaimer:  www.stjude.org/emaildisclaimer
Consultation Disclaimer:  www.stjude.org/consultationdisclaimer

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list