[Insight-users] LBFGSOptimizer bug (?)

Sean McBride sean at rogue-research.com
Fri Mar 8 10:27:34 EST 2013


On Thu, 7 Mar 2013 15:09:51 -0500, Tim Allman said:

>Are you sure that ITK builds with clang? My attempt fails like this.
>
>celia:tim-[itk-build]: make
>[  0%] Built target ITKData
>[  0%] Building CXX object 
>Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/SystemTools.cxx.o
>In file included from 
>/Users/tim/devel/InsightToolkit-4.3/Modules/ThirdParty/KWSys/src/KWSys/
>SystemTools.cxx:26:
>/Users/tim/devel/itk-build/Modules/ThirdParty/KWSys/src/itksys/ios/
>sstream:176:29: 
>error: cannot initialize a parameter of type
>       'iostate' (aka 'std::_Ios_Iostate') with an lvalue of type 'int'
>     this->IStrStream::clear(flags);
>                             ^~~~~
>/usr/include/c++/4.2.1/bits/basic_ios.h:133:21: note: passing argument 
>to parameter '__state' here
>       clear(iostate __state = goodbit);
>                     ^

ITK builds with clang, but I'm not sure it builds with llvm's libc++.  Are you using libstdc++ or libc++?  Are you using CMake's 'unix makefiles' generator or the 'Xcode' generator?   Which version of Xcode?  Xcode 4.6 switched to libc++ by default I believe.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-users mailing list