Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-Problem-Compiling-QuantLib-0-3-11-on-Solaris-5-8-tp4359.html

On 1/18/06, [hidden email] <[hidden email]> wrote:
>  I am getting below error while compiling the Quantlib 0.3.11 on solaris 5.8
> Unix box with CC .

Hmm. From the log, what happens is that including <cmath> does not
cause M_PI to be defined, so ./configure tells QuantLib to define it
itself. Afterwards, some other header is included which defines M_PI,
causing it to be defined twice.

Why this happens is beyond me. Maybe you can track the files that get
included and see why the configure test fails?

As a workaround, you can try and manually edit ql/config.hpp after
./configure creates it so that M_PI is not defined. I'm not sure what
will happen, but you can give it a try.

Later,
    Luigi