Boost C++ Libraries: Ticket #11546: Incorrect use of __declspec https://svn.boost.org/trac10/ticket/11546 <p> I compiled Boost 1.59.0 with Solaris Studio 12.4 in C++11 mode and I get the following error messages: </p> <p> "./boost/math/special_functions/detail/lanczos_sse2.hpp", line 26: Error: invalid <span class="underline">declspec syntax at "(". </span></p> <p> Obviously, the Solaris compiler shouldn't be encountering <span class="underline">declspec. Someone suggested modifying the line <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/15" title="#15: Feature Requests: thread class needs join() with timeout (closed: None)">#15</a> in boost/math/special_functions/detail/lanczos_sse2.hpp containing: </span></p> <blockquote> <table class="wiki"> <tr>#if defined(<span class="underline">GNUC</span>) <td> defined(<span class="underline">PGI) </span></td></tr></table> </blockquote> <p> to </p> <blockquote> <table class="wiki"> <tr>#if defined(<span class="underline">GNUC</span>) <td> defined(<span class="underline">PGI) </span></td><td> defined(<span class="underline">SUNPRO_CC) </span></td></tr></table> </blockquote> <p> I'm not sure if this is the correct fix, but it does make sense. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11546 Trac 1.4.3 John Maddock Tue, 18 Aug 2015 11:20:13 GMT <link>https://svn.boost.org/trac10/ticket/11546#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11546#comment:1</guid> <description> <p> Yes, I made this fix yesterday: <a class="ext-link" href="https://github.com/boostorg/math/commits/accuracy"><span class="icon">​</span>https://github.com/boostorg/math/commits/accuracy</a> </p> <p> It's on a feature branch currently, but should propagate through to the next release. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 03 Sep 2015 17:45:27 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11546#comment:2 https://svn.boost.org/trac10/ticket/11546#comment:2 <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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> <p> merged to develop, targeting 1.60. </p> Ticket