Solution for (some) Compilation Problems with Sun Forte 6.2
Assertion: (../links/init.cc, line 972) while processing /opt/boost_1.30.0/boost/type_traits/alignment_of.hpp at
Hi there, a colleague of mine tried to build the Boost::filesystem library (from Boost 1.30.0) under Sun SPARC Solaris7 with the Forte6.2 aka Sun Workshop5.3 compiler and got this failure: line 45. He investigated this problem and found out that defining the preprocessor macro BOOST_NO_INCLASS_MEMBER_INITIALIZATION would solve this. So we changed the boost/config/compiler/sunpro_cc.hpp at line 33 as follows: # if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG) # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION Now we can compile the filesystem library successfully. Could please one of the experts comment on this change or maybe include this in the next release? Regards, Adalbert Perbandt.
Adalbert Perbandt
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG) # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
Now we can compile the filesystem library successfully. Could please one of the experts comment on this change or maybe include this in the next release?
I believe it's already in the CVS for that file: http://tinyurl.com/efbd -- Dave Abrahams Boost Consulting www.boost-consulting.com
Adalbert Perbandt
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG) # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
Now we can compile the filesystem library successfully. Could please one of the experts comment on this change or maybe include this in the next release?
I believe it's already in the CVS for that file: http://tinyurl.com/efbd -- Dave Abrahams Boost Consulting www.boost-consulting.com
Adalbert Perbandt wrote:
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG) # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
A similar change has already been made to CVS repository: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/boost/config/compiler/sunpro_cc.hpp?rev=1.14&content-type=text/vnd.viewcvs-markup see discussions at http://lists.boost.org/MailArchives/boost/msg47184.php and http://lists.boost.org/MailArchives/boost/msg47220.php Regards, Christopher
participants (3)
-
Adalbert Perbandt
-
Christopher Currie
-
David Abrahams