Yes, there's a compatibility gap when you flip the switch to be true C++11 and libc++. Don't mix and match.
I'm afraid I haven't done the work to ensure that we get a clean C++11 compile, but I don't think it's much work. Give me a day or two to look into it, and I bet I can give detailed instructions that will get you there. Stay tuned. -- lg On Jul 19, 2014, at 6:28 PM, mtm <mich...@tweakoz.com> wrote: > > 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 -- Larry Gritz l...@larrygritz.com _______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org