Hi Jan,

Curious, I had linking errors when compiling osg with c++11 for IOS, so I added 
the c++98-flags to cmake. The best we can do is to make it configurable via 
cmake.

cheers,

Stephan

Am 18.10.2013 um 10:25 schrieb "Jan Klimke" <[email protected]>:

> Hi Robert,
> 
> thanks for you reply.
> 
> I am pretty sure that the settings did not change. But what i noticed is that 
> the build is running better when libc++ and the c++11 standard is used when 
> compiling.
> 
> Currently if there is a clang compiler, the standard used is still c++98. 
> This is currently hard coded and not configurable from cmake. Since dependent 
> projects use the c++11 standard and libc++ as standard library 
> implementation, there are linking issues if osg is not build with libc++ due 
> to incompatibilities of std::string in libstdc++ and libc++
> 
> 
> I had to adapt some plugins (added some casts to remove compiling errors) in 
> oder to make osg compile. Do you think it is useful to switch the c++ 
> versions in CMAKE at least for newer CLANG versions. 
> 
> The current Xcode provides the clang 5 as default compiler.
> 
> Do you think these changes could be integrated into osg and the defaults can 
> be changed to libc++ and c++11 for clang compiling ?
> 
> Thank you!
> 
> Cheers,
> Jan
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=56849#56849
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to