[Boost 1.41: list_of] Boost compliation error, Sun Studio 11 using standard C++ lib

Hi, I'm having trouble building Boost headers (e.g. <boost/assign/list_of.hpp> ) with Sun Studio 11 using standard C++ library. I have no problem when i build the headers using the stlport lib. However, due to some restrictions, i have to use the standard c++ lib but not the stlport lib. Does anyone know whether it is possible to complie the following headers using sun studio 11 with ONLY the standard C++ library? I'm okay to use even 1.38 as long as i can compile it with Sun Studio 11 using ONLY the C++ standard library. Sample Error Message: "/Utilities/Boost/boost_1_41_0/boost/integer_fwd.hpp", line 70: Error: long_long_type is not a member of boost. "/Utilities/Boost/boost_1_41_0/boost/integer_fwd.hpp", line 70: Error: Template parameter boost::T requires a type argument. "/Utilities/Boost/boost_1_41_0/boost/integer_fwd.hpp", line 73: Error: ulong_long_type is not a member of boost. "/Utilities/Boost/boost_1_41_0/boost/integer_fwd.hpp", line 73: Error: Template parameter boost::T requires a type argument. 4 Error(s) detected. List of headers desired to build: #include <boost/algorithm/string.hpp> #include <boost/version.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <boost/utility.hpp> #include <boost/type_traits/is_convertible.hpp> #include <boost/assign/list_of.hpp> Thanks _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://go.microsoft.com/?linkid=9691817

AMDG shing fan wrote:
I'm having trouble building Boost headers (e.g. <boost/assign/list_of.hpp> ) with Sun Studio 11 using standard C++ library. I have no problem when i build the headers using the stlport lib. However, due to some restrictions, i have to use the standard c++ lib but not the stlport lib. Does anyone know whether it is possible to complie the following headers using sun studio 11 with ONLY the standard C++ library? I'm okay to use even 1.38 as long as i can compile it with Sun Studio 11 using ONLY the C++ standard library.
The default standard library for Sun is not supported because it is insufficiently standards compliant. In Christ, Steven Watanabe

Steven Watanabe wrote:
AMDG
shing fan wrote:
I'm having trouble building Boost headers (e.g. <boost/assign/list_of.hpp> ) with Sun Studio 11 using standard C++ library. I have no problem when i build the headers using the stlport lib. However, due to some restrictions, i have to use the standard c++ lib but not the stlport lib. Does anyone know whether it is possible to complie the following headers using sun studio 11 with ONLY the standard C++ library? I'm okay to use even 1.38 as long as i can compile it with Sun Studio 11 using ONLY the C++ standard library.
The default standard library for Sun is not supported because it is insufficiently standards compliant.
I would quote Roman Shaposhnik's workshop [1] from Sun: "BOOST with libCstd.so.1 : Can Happen, but is insane" [1] http://www.osdevcon.org/2008/files/tutorial-roman/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
participants (3)
-
Mateusz Loskot
-
shing fan
-
Steven Watanabe