Hi, I have been using OSG in my projects for some time now and have had great experiences so far!
Now we are trying to harness the power of C++ 11 features (my linux buddies have been doing so for a while and I've been using older boost counterparts). I decided to make take the plunge and try to get the project using c++ 11 on Mac OS X. I just rebuilt OSG 3.1.5 from source using my updated boost libraries and other dependencies. I made sure when building OSG that CMAKE_OSX_ARCHITECTURES was set to 'x86_64'. After installing OSG I made a dummy project that was (a) using OSG (and OsgDB) and (b) using libc++ / c11 with clang. My dummy file basically has one line related to osg: Code: osg::Node *node = osgDB::readNodeFile(modelName); The linking process of my simple file fails, however, with the following: Undefined symbols for architecture x86_64: "osgDB::readNodeFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, osgDB::Options const*)", referenced from: osgDB::readNodeFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Now I know for sure that I built OSG with the architecture x86_64, so I don't think that's the issue. What I'mm thinking is more likely the culprit is using the c11 standards. Has anyone out there built against OSG using the following compiler flags? -std=c++11 -stdlib=libc++ If I'm trying to do this, should I HAVE to build OSG itself with these flags? Any help would be appreciated, thanks! Cheers, Kellen ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53876#53876 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org