简体   繁体   English

Boost 1.36与STLPort 4.6.2编译错误

[英]Boost 1.36 with STLPort 4.6.2 compilation error

I am trying to build Boost 1.36 with STLPort 4.6.2 on solaris, but getting below error, 我正在尝试在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.

Please help in understanding the problem and how can I resolve ? 请帮助理解问题以及如何解决?

Is Boost supported for STLPort 4.6.2 ? STLPort 4.6.2是否支持Boost?

Command used to build: 用于构建的命令:

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

Please refer below link for the answer, its a patch suggested on the boost.org site. 请参考下面的链接以获取答案,其修补程序在boost.org网站上建议。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM