I have a project I am working on that uses clang++/libC++ and every time I link with the Ubuntu stock built in OpenImageIO I get link errors due to the std::__1 namespace. Solution - compile my own using clang++/libc++
I will go on record as not being a cmake guru. Far from it, so excuse me if the answer is just obvious, but I have definitely spent some time looking.
I have tried several things already, including: setting CXX_FLAGS="-std=c++11 -stdlib=libc++" prior to make this causes all other stock oiio/cmake supplied CXXFLAGS to get trashed, causing havoc. setting CXX = "clang++ -std=c++11 -stdlib=libc++" prior to make this so far has had the best results, but causes link errors related to std::__1 namespace when linking OpenImageIO_Util setting CMAKE_CXX_FLAGS = "-std-c++11 -stdlib=c++11" prior to make this is not propagated through for some reason. Effectively a stock build. Thanks, mtm _______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org