<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear mailing list members,<div class=""><br class=""></div><div class="">I’m running on OS X 10.10 and have successfully compiled ITK 4.7.1(using shared library setting). But I always got a ‘type_traits’ error.</div><div class=""><br class=""></div><div class=""><i class="">/usr/local/itk/include/ITK-4.7/itkImageAlgorithm.h:24:12: fatal error: 'type_traits' file not found</i></div><div class=""><br class=""></div><div class="">My CMakeLists.txt is quite simple:</div><div class=""><br class=""></div><div class="">#####</div><div class=""><div class="">cmake_minimum_required(VERSION 2.8.4)</div><div class="">project(DicomSeriesReadImageWrite2)</div><div class=""><br class=""></div><div class="">set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++ -std=c++11")</div><div class=""><br class=""></div><div class="">find_package(ITK REQUIRED)</div><div class="">include(${ITK_USE_FILE})</div><div class=""><br class=""></div><div class="">set(SOURCE_FILES main.cpp)</div><div class="">add_executable(DicomSeriesReadImageWrite2 ${SOURCE_FILES})</div></div><div class="">#####</div><div class=""><br class=""></div><div class="">Change the stdlib to be libc++ leads to this error: Undefined symbols for architecture x86_64</div><div class=""><br class=""></div><div class="">I tried to search the same problem in mailing list archive, but issue remains. And I referred to <a href="http://avansp.github.io/build/2014/10/30/building-ITK-4.7-on-macosx-10.9.5/" class="">this post</a>, but ’tr1/type_traits’ error was generated.</div><div class=""><br class=""></div><div class="">I’m new on ITK, can anybody help me?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Quentan</div></body></html>