Boost C++ Libraries: Ticket #10877: Compiling Boost (1.56) on Solaris 11 https://svn.boost.org/trac10/ticket/10877 <p> I am trying to compile a program using the Boost 1.56 libraries. I am getting the following errors when using the Solaris C++ compiler: </p> <pre class="wiki">"../boost_1_56_0/boost/predef/library/std/roguewave.h", line 47: Error: Badly formed constant expression. "../boost_1_56_0/boost/mpl/aux_/integral_wrapper.hpp", line 45: Error: An integer constant expression is required here. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 38: Where: While specializing "mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;". "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 38: Where: Specialized in boost::mpl::abs_tag&lt;mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;&gt;. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 47: Where: Specialized in boost::mpl::abs&lt;mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;&gt;. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 60: Where: Specialized in boost::mpl::abs_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;. "../boost_1_56_0/boost/ratio/ratio.hpp", line 79: Where: Specialized in boost::ratio&lt;boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::den&gt;. "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: Specialized in boost::ratio_gcd&lt;boost::R1, boost::R2&gt;. "../boost_1_56_0/boost/chrono/duration.hpp", line 406: Where: Specialized in boost::common_type&lt;long long, boost::ratio&lt;1, 1000000000&gt;, long long, boost::ratio&lt;1, 1&gt;&gt;. "../boost_1_56_0/boost/thread/pthread/timespec.hpp", line 52: Where: Specialized in non-template code. Error: Cannot continue processing because of prior errors. "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: While specializing "boost::ratio&lt;boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::den&gt;". "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: Specialized in boost::ratio_gcd&lt;boost::R1, boost::R2&gt;. "../boost_1_56_0/boost/chrono/duration.hpp", line 406: Where: Specialized in boost::common_type&lt;long long, boost::ratio&lt;1, 1000000000&gt;, long long, boost::ratio&lt;1, 1&gt;&gt;. "../boost_1_56_0/boost/thread/pthread/timespec.hpp", line 52: Where: Specialized in non-template code. </pre><p> The compiler options are as follows: </p> <pre class="wiki">CC -c -m64 -g -erroff=%all -mt -Qoption ccfe -complextmplexp -o tcloader -I../boost_1_56_0 -I../getdartwork_install/tinyxml main.cpp -lboost_thread -lboost_system </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10877 Trac 1.4.3 mfletcher0420 Tue, 16 Dec 2014 17:35:51 GMT <link>https://svn.boost.org/trac10/ticket/10877#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10877#comment:1</guid> <description> <p> I am trying to compile a program using the Boost 1.56 libraries. I am getting the following errors when using the Solaris C++ compiler: </p> <p> "../boost_1_56_0/boost/predef/library/std/roguewave.h", line 47: Error: Badly formed constant expression. "../boost_1_56_0/boost/mpl/aux_/integral_wrapper.hpp", line 45: Error: An integer constant expression is required here. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 38: Where: While specializing "mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;". "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 38: Where: Specialized in boost::mpl::abs_tag&lt;mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;&gt;. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 47: Where: Specialized in boost::mpl::abs&lt;mpl_::integral_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;&gt;. "../boost_1_56_0/boost/ratio/detail/mpl/abs.hpp", line 60: Where: Specialized in boost::mpl::abs_c&lt;long long, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num&gt;. "../boost_1_56_0/boost/ratio/ratio.hpp", line 79: Where: Specialized in boost::ratio&lt;boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::den&gt;. "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: Specialized in boost::ratio_gcd&lt;boost::R1, boost::R2&gt;. "../boost_1_56_0/boost/chrono/duration.hpp", line 406: Where: Specialized in boost::common_type&lt;long long, boost::ratio&lt;1, 1000000000&gt;, long long, boost::ratio&lt;1, 1&gt;&gt;. "../boost_1_56_0/boost/thread/pthread/timespec.hpp", line 52: Where: Specialized in non-template code. Error: Cannot continue processing because of prior errors. "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: While specializing "boost::ratio&lt;boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::num, boost::ratio&lt;boost::mpl::gcd_c&lt;long long, num, num&gt;::value, boost::mpl::lcm_c&lt;long long, den, den&gt;::value&gt;::den&gt;". "../boost_1_56_0/boost/ratio/ratio.hpp", line 204: Where: Specialized in boost::ratio_gcd&lt;boost::R1, boost::R2&gt;. "../boost_1_56_0/boost/chrono/duration.hpp", line 406: Where: Specialized in boost::common_type&lt;long long, boost::ratio&lt;1, 1000000000&gt;, long long, boost::ratio&lt;1, 1&gt;&gt;. "../boost_1_56_0/boost/thread/pthread/timespec.hpp", line 52: Where: Specialized in non-template code. </p> <p> The compiler options are as follows: CC -c -m64 -g -erroff=%all -mt -Qoption ccfe -complextmplexp -o tcloader -I../boost_1_56_0 main.cpp -lboost_thread -lboost_system </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 13 Feb 2015 18:46:54 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/10877#comment:2 https://svn.boost.org/trac10/ticket/10877#comment:2 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/10877?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket viboes Fri, 13 Feb 2015 18:47:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10877#comment:3 https://svn.boost.org/trac10/ticket/10877#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Please, create a ticket for each library. </p> Ticket