使用STLPort 4.6.2编译错误提升1.36

时间:2014-07-01 13:32:35

标签: c++ boost stlport

我正试图在solaris上使用STLPort 4.6.2构建Boost 1.36,但是低于错误,

 "CC" -fast -mt -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -D_STLP_USE_DYNAMIC_LIB=1 -I"." -I"/sw/source/mer_misc_libs/STLport-4.6.2" -c -o "bin.v2/libs/math/build/sun/release/stdlib-stlport-4.6.2/threading-multi/tgamma.o" "libs/math/build/../src/tr1/tgamma.cpp"

"./boost/array.hpp", line 75: **Error: Too few arguments for template std::reverse_iterator<boost::T*>.**
"./boost/array.hpp", line 295:     **Where: While specializing "boost::array<boost::T, boost::N>".**
"./boost/array.hpp", line 295:     **Where: Specialized in non-template code**.

"./boost/array.hpp", line 76: Error: Too few arguments for template std::reverse_iterator<const boost::T*>.
"./boost/array.hpp", line 295:     Where: While specializing "boost::array<boost::T, boost::N>".
"./boost/array.hpp", line 295:     Where: Specialized in non-template code.
2 Error(s) detected.

请帮助理解问题,我该如何解决?

STLPort 4.6.2是否支持Boost?

用于构建的命令:

./tools/jam/src/bin.solaris/bjam --without-python stdlib=stlport-4.6.2 toolset=sun stage

1 个答案:

答案 0 :(得分:1)

请参考以下链接获取答案,它是在boost.org网站上提供的补丁。

https://svn.boost.org/trac/boost/attachment/ticket/3893/boost-array.diff