Hi,
Has anyone built Boost using Sun Studio 11 on Solaris 8? I tried to build with the boost source 1.33.1 and it was complaining about assertions ../link.cc or something like that. Then I saw a post which talked about BOOST_NO_INCLASS_MEMBER_INITIALIZATION. So I changed the file
boost/config/compiler/sunpro_cc.hpp as follows
//# if (__SUNPRO_CC < 0x570)
# define BOOST_NO_TEMPLATE_TEMPLATES
// see http://lists.boost.org/MailArchives/boost/msg47184.php
// and http://lists.boost.org/MailArchives/boost/msg47220.php
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
# define BOOST_NO_SFINAE
# define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
# define BOOST_NO_IS_ABSTRACT
//# endif
I commented out the code where it was checking for compiler version less than 5.7.
I was able to compile the code (atleast the ones I needed - date_time and serialization).
Now when I try to use the built libraries with my test code, I get the following errors related to has_facet and use_facet.
"/opt/idev3/dbapatla/NativeSTL/boostlibs/include/boost-1_33_1/boost/date_time/gregorian/gregorian_io.hpp", line 45: Error: Could not find a match for std::has_facetstd::Facet(std::locale) needed in boost::gregorian::operator<<
participants (1)
-
Dipak Bapatla