quantlib install error

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

quantlib install error

Frankoctave
Hi ,

I am a new user of quantlib. 

I have downloaded quantlib and want to install it on linux.

But, the install instruction page of http://quantlib.org/install.shtml
is empty. 

I followed the common rules to install open source software on linux
bu using configure and then make, but I got errors: 

----------------------------------------------------------------------

make[3]: Entering directory `/quantLib/QuantLib-1.0.1/ql/cashflows'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../ql  -I../.. -I../..   -g -O2 -MT averagebmacoupon.lo -MD -MP -MF ".deps/averagebmacoupon.Tpo" -c -o averagebmacoupon.lo averagebmacoupon.cpp; \
        then mv -f ".deps/averagebmacoupon.Tpo" ".deps/averagebmacoupon.Plo"; else rm -f ".deps/averagebmacoupon.Tpo"; exit 1; fi
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -g -O2 -MT averagebmacoupon.lo -MD -MP -MF .deps/averagebmacoupon.Tpo -c averagebmacoupon.cpp  -fPIC -DPIC -o .libs/averagebmacoupon.o
../../ql/event.hpp:55: error: ânoneâ is not a member of âboostâ
../../ql/cashflow.hpp:54: error: ânoneâ is not a member of âboostâ
make[3]: *** [averagebmacoupon.lo] Error 1
make[3]: Leaving directory `/quantLib/QuantLib-1.0.1/ql/cashflows'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/quantLib/QuantLib-1.0.1/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/quantLib/QuantLib-1.0.1/ql'
make: *** [all-recursive] Error 1
---------------------------------------------------------------------

It seems that the definition about boost::none member cannot be found.

I have installed boost 1.45.0.  

I cannot find solutions by searching on line.

So, any help would be really appreciated here. 

thanks

Jack 

Feb. 28 2011







------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: quantlib install error

Luigi Ballabio
On Sun, 2011-02-27 at 23:46 -0700, Jack Bryan wrote:
> I followed the common rules to install open source software on linux
> bu using configure and then make, but I got errors: [...]
> It seems that the definition about boost::none member cannot be found.
>
> I have installed boost 1.45.0.  

QuantLib used to compile cleanly for me with boost 1.45 (and yes, using
configure and make is the correct way to do it.)  And in fact, looking
at the boost headers for 1.45, it seems that <boost/optional.hpp> (which
is included by ql/event.hpp) does include <boost/none.hpp> and its
definition of none.  Are you sure you don't have two Boost installations
mixed up on your machine?

Luigi


--

Innovation is hard to schedule.
-- Dan Fylstra



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users