Posted by
Marco.Aita on
Dec 07, 2005; 7:45am
URL: http://quantlib.414.s1.nabble.com/Compilation-problems-on-SunOS-5-8-tp4300.html
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.
The compliation of Boost goes ok (apart from errors in the "filesystem"
library, which I solved by not compiling it:
bjam -sTOOLS=sunpro -sSUNPRO_CXX=CC -sSUNPRO_CC=cc --without-filesystem )
, but the compilation of QuantLib gives me tons of warnings and some
errors.
I configure QuantLib with
./configure --with-boost-include=path_to_boost-1_31
--with-boost-lib=path_to_boost_lib CC=cc CXX=CC
and 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.
"/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".
...
and the following error:
"/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.
The compilation goes ok on a Linux 2.4.21-4ELsmp box with gcc 3.2.3 (and on
a Win2000 + VC++ 7 machine).
Any idea?
http://www.mpsfinance.it- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Le informazioni contenute nel presente e-mail e nei documenti eventualmente
allegati sono confidenziali e sono comunque riservate al destinatario delle
stesse. La loro diffusione, distribuzione e/o copia da parte di terzi è
proibita e può costituire violazione della normativa che tutela il diritto
alla privacy. Se avete ricevuto questa comunicazione per errore, Vi
preghiamo di informare immediatamente il mittente del messaggio e di
distruggere questo e-mail.
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
This e-mail is confidential and it is legally privileged. If you have
received it in error, please notify us immediately by reply e-mail and then
delete this message from your system. Please do not copy it or use it for
any purposes, or disclose its contents to any other person. Mind that to do
so could be a breach of Italian privacy Law. Thank you for your
co-operation.