Posted by
Luigi Ballabio on
Dec 12, 2005; 1:51am
URL: http://quantlib.414.s1.nabble.com/Compilation-problems-on-SunOS-5-8-tp4300p4301.html
On 12/07/2005 04:44:20 PM,
[hidden email] wrote:
> Hi, I'm trying to complile QuantLib 0.3.9 on SunOS 5.8, using Sun
> C++ 5.5 compiler (Sun ONE Studio 8) , and Boost 3.1.11.
>
> [...] when I run make I get the following warnings (stripped..)
>
> CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored
> otherwise
> "/usr/include/math.h", line 61: Warning (Anachronism): Attempt to
> redefine M_PI without using #undef.
Apparently, configure doesn't find M_PI, defines it, and afterwards
math.h tries to define it as well. Strange---it almost looks like
configure finds a different math.h or cmath. The warning should be
harmless though.
> "/home/utb43/simone/marco/local/include/boost-1_31/boost/mpl/if.hpp",
> line 71: Warning (Anachronism): Type names qualified by template
> parameters require "typename".
>
> "/home/utb43/simone/marco/local/include/boost-1_31/boost/iterator/filter_iterator.hpp",
>
> line 131: Error: Default arguments cannot be added in later
> declarations of the template function in the same scope.
These seems Boost issues. You might try upgrading to Boost 1.33.
Later,
Luigi
----------------------------------------
Barker's Proof:
Proofreading is more effective after publication.