compiling QL on Solaris 10/SunStudio 12

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling QL on Solaris 10/SunStudio 12

Warren Chou
We are trying to compile QuantLib on Solaris 10 with SunStudio 12 and Boost headers only. We got following error far into the compilation:

> make
Making all in config
Making all in ql
dmake  all-recursive
Making all in cashflows
Making all in currencies
Making all in experimental
Making all in amortizingbonds
Making all in barrieroption
Making all in callablebonds
Making all in commodities
Making all in coupons
Making all in credit
Making all in finitedifferences
source='fdmstepconditioncomposite.cpp' object='fdmstepconditioncomposite.lo' libtool= yes \ DEPDIR=.deps depmode=none /bin/bash ../../../config/depcomp \ /bin/bash ../../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H  -I. -I. -I../
../../ql  -I../../.. -I../../.. -I/appl/pm/vendor/boost_1_39_0   -g -O2 -Wall -c -o f
dmstepconditioncomposite.lo fdmstepconditioncomposite.cpp
libtool: compile:  CC -DHAVE_CONFIG_H -I. -I. -I../../../ql -I../../.. -I../../.. -I/ appl/pm/vendor/boost_1_39_0 -g -O2 -Wall -c fdmstepconditioncomposite.cpp  -KPIC -DPI C -o .libs/fdmstepconditioncomposite.o
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise "../../../ql/math/array.hpp", line 544: Warning (Anachronism): Formal argument x of t ype double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is b eing passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 551: Warning (Anachronism): Formal argument x of t ype double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is b eing passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 558: Warning (Anachronism): Formal argument x of t ype double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is b eing passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 565: Warning (Anachronism): Formal argument x of t ype double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is b eing passed extern "C" double(*)(double).
"fdmstepconditioncomposite.cpp", line 37: Error: Could not find a match for std::vect or<double>::vector(__rwstd::__rb_tree<double, double, __rwstd::__ident<double, double
>, std::less<double>, std::allocator<double>>::const_iterator,
>__rwstd::__rb_tree<dou
ble, double, __rwstd::__ident<double, double>, std::less<double>, std::allocator<doub
le>>::const_iterator) needed in
le>>QuantLib::FdmStepConditionComposite::FdmStepCondition
Composite(const std::list<std::vector<double> >&, const std::list<boost::shared_ptr<Q uantLib::StepCondition<QuantLib::Array>> >&).
1 Error(s) and 4 Warning(s) detected.
*** Error code 1

Any ideas would be appreciated!

Warren
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling QL on Solaris 10/SunStudio 12

Andreas Spengler-2
Hi Warren,

Am 28.08.2009 01:03, schrieb Warren Chou:

> We are trying to compile QuantLib on Solaris 10 with SunStudio 12 and Boost headers only. We got following error far into the compilation:

> "fdmstepconditioncomposite.cpp", line 37: Error: Could not find a match for std::vect or<double>::vector(__rwstd::__rb_tree<double, double, __rwstd::__ident<double, double
>> , std::less<double>, std::allocator<double>>::const_iterator,
>> __rwstd::__rb_tree<dou
> ble, double, __rwstd::__ident<double, double>, std::less<double>, std::allocator<doub
> le>>::const_iterator) needed in
> le>>QuantLib::FdmStepConditionComposite::FdmStepCondition
> Composite(const std::list<std::vector<double>  >&, const std::list<boost::shared_ptr<Q uantLib::StepCondition<QuantLib::Array>>  >&).
> 1 Error(s) and 4 Warning(s) detected.
> *** Error code 1
>
> Any ideas would be appreciated!

tried this myself some months ago. The problem is, the SUN compiler in
its default outfit comes with a wrecked STL.

For it to work with Quantlib you have to use the STLport library...

Rgds,

Andreas

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users