Opened 7 years ago

Closed 7 years ago

#11546 closed Bugs (fixed)

Incorrect use of __declspec

Reported by: lcarreon@… Owned by: John Maddock
Milestone: Boost 1.60.0 Component: math
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

I compiled Boost 1.59.0 with Solaris Studio 12.4 in C++11 mode and I get the following error messages:

"./boost/math/special_functions/detail/lanczos_sse2.hpp", line 26: Error: invalid declspec syntax at "(".

Obviously, the Solaris compiler shouldn't be encountering declspec. Someone suggested modifying the line #15 in boost/math/special_functions/detail/lanczos_sse2.hpp containing:

#if defined(GNUC)
defined(PGI)

to

#if defined(GNUC)
defined(PGI) defined(SUNPRO_CC)

I'm not sure if this is the correct fix, but it does make sense.

Change History (2)

comment:1 by John Maddock, 7 years ago

Yes, I made this fix yesterday: https://github.com/boostorg/math/commits/accuracy

It's on a feature branch currently, but should propagate through to the next release.

comment:2 by John Maddock, 7 years ago

Milestone: To Be DeterminedBoost 1.60.0
Resolution: fixed
Status: newclosed

merged to develop, targeting 1.60.

Note: See TracTickets for help on using tickets.