Anybody with an interest in C++11 care to try this patch and confirm that it works as expected?
On Jul 23, 2014, at 9:57 AM, Larry Gritz <l...@larrygritz.com> wrote: > Does this patch help, Michael? > > -- lg > > > On Jul 20, 2014, at 11:23 PM, Larry Gritz <l...@larrygritz.com> wrote: > >> Try this: https://github.com/OpenImageIO/oiio/pull/915 >> >> Seems to compile for me on OSX with this patch and >> >> make USE_CPP11=1 USE_LIBCPLUSPLUS=1 >> >> This is my first (non-fantasy) experience with C++11, so I can't swear that >> all the kinks are worked out. But it does seem to compile in this mode, and >> runs the testsuite ok for me. >> >> >> >> >> On Jul 19, 2014, at 11:20 PM, Larry Gritz <l...@larrygritz.com> wrote: >> >>> 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 >> >> -- >> Larry Gritz >> l...@larrygritz.com >> >> >> >> _______________________________________________ >> Oiio-dev mailing list >> Oiio-dev@lists.openimageio.org >> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > > -- > Larry Gritz > l...@larrygritz.com > > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz l...@larrygritz.com _______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org