Login  Register

Re: Quantlib with Sunstudio 12.1 on Solaris 2.10/Sparc

Posted by Luigi Ballabio on Apr 13, 2010; 9:09am
URL: http://quantlib.414.s1.nabble.com/Quantlib-with-Sunstudio-12-1-on-Solaris-2-10-Sparc-tp13400p13401.html

On Fri, 2010-04-09 at 13:15 +0200, Norbert Irmer wrote:
> I finally solved my problems.
>
> I had 4 unresolved symbols.
>
> 3 were due to functions, which were declared  and defined with
> different signatures, e.g.

Ok, I'll fix those for next release.


> As i previously wrote, when compiling Quantlib with Sunstudio i got a
> lot of undefined "M_PI", "sqrt" etc..
>
> I solved these by simply adding lots of "#include <math.h>" to the
> sources, perhaps this could be done more elegantly at a central
> location.

Strange. Does adding '#include <cmath>' work instead?  Also, does the
compiler complain about 'sqrt' or 'std::sqrt'? May you send me the exact
message?

Finally, I'm not familiar with Sunstudio---is it just a set of compilers
or an IDE?  That is, do you run './configure' and 'make' or what?

Thanks,
        Luigi



--

Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away.
-- Antoine de Saint-Exupery



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev