Good day,
I get the below compile errors when building on Mac OS X 10.8.2 when running
cmake with the following flags:
cmake -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++ -g3 -Wall -O0"
-DOSG_ENABLE_C++11=ON
Is c++11 supported? I will appreciate if someone has a fix/workaround for the
errors.
In file included from /data/src/opensg/Source/Base/Base/OSGBaseDef.cpp:45:
In file included from
/data/src/opensg/Source/Base/Base/OSGBaseInitFunctions.h:45:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypes.h:835:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypeTraits.h:51:
/data/src/opensg/Source/Base/Base/OSGIOStream.h:160:32: error: no type named
'_Setbase' in namespace 'std'
OutStream &operator<<(std::_Setbase __f);
~~~~~^
In file included from /data/src/opensg/Source/Base/Base/OSGBaseDef.cpp:45:
In file included from
/data/src/opensg/Source/Base/Base/OSGBaseInitFunctions.h:45:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypes.h:835:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypeTraits.h:51:
In file included from /data/src/opensg/Source/Base/Base/OSGIOStream.h:405:
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:175:23: error: 'operator<<'
cannot be the name of a variable or data member
OutStream &OutStream::operator<<(std::_Setbase __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:175:39: error: no member
named '_Setbase' in namespace 'std'; did you mean 'setbase'?
OutStream &OutStream::operator<<(std::_Setbase __f)
~~~~~^~~~~~~~
setbase
/usr/bin/../lib/c++/v1/iomanip:153:1: note: 'setbase' declared here
setbase(int __base)
^
In file included from /data/src/opensg/Source/Base/Base/OSGBaseDef.cpp:45:
In file included from
/data/src/opensg/Source/Base/Base/OSGBaseInitFunctions.h:45:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypes.h:835:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypeTraits.h:51:
In file included from /data/src/opensg/Source/Base/Base/OSGIOStream.h:405:
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:175:48: error: expected ')'
OutStream &OutStream::operator<<(std::_Setbase __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:175:33: note: to match this
'('
OutStream &OutStream::operator<<(std::_Setbase __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:175:52: error: expected ';'
after top level declarator
OutStream &OutStream::operator<<(std::_Setbase __f)
^
;
In file included from /data/src/opensg/Source/Base/Base/OSGBaseDef.cpp:45:
In file included from
/data/src/opensg/Source/Base/Base/OSGBaseInitFunctions.h:45:
In file included from /data/src/opensg/Source/Base/Base/OSGBaseTypes.h:835:
/data/src/opensg/Source/Base/Base/OSGBaseTypeTraits.h:442:13: error: use of
overloaded operator '<<' is ambiguous (with operand types 'OSG::OutStream' and
'Int32' (aka 'int'))
str << Int32(val);
~~~ ^ ~~~~~~~~~~
/data/src/opensg/Source/Base/Base/OSGIOStream.h:160:16: note: candidate function
OutStream &operator<<(std::_Setbase __f);
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:90:23: note: candidate
function
OutStream &OutStream::operator<<(int __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:42:23: note: candidate
function
OutStream &OutStream::operator<<(long __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:50:23: note: candidate
function
OutStream &OutStream::operator<<(unsigned long __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:58:23: note: candidate
function
OutStream &OutStream::operator<<(bool __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:66:23: note: candidate
function
OutStream &OutStream::operator<<(char __c)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:74:23: note: candidate
function
OutStream &OutStream::operator<<(short __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:82:23: note: candidate
function
OutStream &OutStream::operator<<(unsigned short __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:98:23: note: candidate
function
OutStream &OutStream::operator<<(unsigned int __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:106:23: note: candidate
function
OutStream &OutStream::operator<<(long long __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:114:23: note: candidate
function
OutStream &OutStream::operator<<(unsigned long long __n)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:122:23: note: candidate
function
OutStream &OutStream::operator<<(double __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:130:23: note: candidate
function
OutStream &OutStream::operator<<(float __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.inl:138:23: note: candidate
function
OutStream &OutStream::operator<<(long double __f)
^
/data/src/opensg/Source/Base/Base/OSGIOStream.h:147:16: note: candidate function
OutStream &operator<<(const Fixed32 &val);
^
/data/src/opensg/Source/Base/Base/OSGIOStream.h:173:24: note: candidate function
virtual OutStream &operator<<( SetIndent);
^
6 errors generated.
make[2]: *** [Build/OSGBase/CMakeFiles/OSGBase.dir/Base/OSGBaseDef.cpp.o] Error
1
make[1]: *** [Build/OSGBase/CMakeFiles/OSGBase.dir/all] Error 2
make: *** [all] Error 2
Regards,
Venkat
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users