SUN Studio errors in version 1.38

Hi, I am encountering build errors with SUNWspro. Mainly "array.hpp" causes the errors. Here is the outline: "./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>. "./boost/array.hpp", line 289: Where: While specializing "boost::array<boost::T, boost::N>". "./boost/array.hpp", line 289: 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 289: Where: While specializing "boost::array<boost::T, boost::N>". "./boost/array.hpp", line 289: Where: Specialized in non-template code. 2 Error(s) detected. I would be happy if the responsible engeneer could solve this problem with Sun Studio. For further information the version I use is the latest Express version from November. Regards Roman

AMDG Roman Morokutti wrote:
I am encountering build errors with SUNWspro. Mainly "array.hpp" causes the errors. Here is the outline:
"./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>. "./boost/array.hpp", line 289: Where: While specializing "boost::array<boost::T, boost::N>". "./boost/array.hpp", line 289: 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 289: Where: While specializing "boost::array<boost::T, boost::N>". "./boost/array.hpp", line 289: Where: Specialized in non-template code. 2 Error(s) detected.
I would be happy if the responsible engeneer could solve this problem with Sun Studio. For further information the version I use is the latest Express version from November.
Boost only works on Sun Studio with stlport (-library=stlport4) In Christ, Steven Watanabe

Thank you for your comments and help. Could you please give me another hint as how to pass this option (-library=stlport4) to 'bjam'. Thanks Roman

Steven Watanabe wrote:
AMDG
Roman Morokutti wrote:
Thank you for your comments and help. Could you please give me another hint as how to pass this option (-library=stlport4) to 'bjam'.
stdlib=sun-stlport
In Christ, Steven Watanabe Thank you very much for your help. It works now! For the pure documentation I will post here the complete steps I have done:
1. Change into the BOOST_ROOT directory 2. ./tools/jam/stage/bin.solaris/bjam --build-dir=/tmp/build-boost --toolset=sun stage stdlib=sun-stlport >/var/tmp/build.log 2>&1 Regards Roman
participants (3)
-
John Maddock
-
Roman Morokutti
-
Steven Watanabe