hi, > i ve already install Quantlib and > this is what i have done to install QuantlibAddin > tar -zxvf QuantlibAddin-0.3.12.tar.gz > cd QuantlibAddin-0.3.12 > ./configure > make > and i ve this message: > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Canada::Canada()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::NewZealand::NewZealand()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::HongKong::HongKong(QuantLib::HongKong::Market)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::Singapore::Singapore(QuantLib::Singapore::Market)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Taiwan::Taiwan(QuantLib::Taiwan::Market)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::BasketOption::BasketOption(QuantLib::BasketOption::BasketType, > boost::shared_ptr<QuantLib::StochasticProcess> const&, > boost::shared_ptr<QuantLib::PlainVanillaPayoff> const&, > boost::shared_ptr<QuantLib::Exercise> const&, > boost::shared_ptr<QuantLib::PricingEngine> const&)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::FixedCouponBond::FixedCouponBond(QuantLib::Date > const&, QuantLib::Date const&, QuantLib::Date const&, int, > std::vector<double, std::allocator<double> > const&, QuantLib::Frequency, > QuantLib::DayCounter const&, QuantLib::Calendar const&, > QuantLib::BusinessDayConvention, double, > QuantLib::Handle<QuantLib::YieldTermStructure> const&, > QuantLib::Date const&, bool, bool)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `typeinfo for QuantLib::VanillaSwap' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::SouthKorea::SouthKorea(QuantLib::SouthKorea::Market)'../../qla/.libs/libQuantLibAddin.so: > undefined reference to `QuantLib::Denmark::Denmark()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::VanillaSwap::VanillaSwap(bool, double, > QuantLib::Schedule const&, double, QuantLib::DayCounter const&, > QuantLib::Schedule const&, > boost::shared_ptr<QuantLib::Xibor> const&, int, double, > QuantLib::Handle<QuantLib::YieldTermStructure> const&)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::CoxRossRubinstein::CoxRossRubinstein(boost::shared_ptr<QuantLib::StochasticProcess1D> > const&, double, unsigned int, double)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Australia::Australia()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::uppercase(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::China::China()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::LeisenReimer::LeisenReimer(boost::shared_ptr<QuantLib::StochasticProcess1D> > const&, double, unsigned int, double)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Finland::Finland()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::TimeGrid::closestIndex(double) const' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::TimeGrid::index(double) const' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::Tian::Tian(boost::shared_ptr<QuantLib::StochasticProcess1D> > const&, double, unsigned int, double)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Norway::Norway()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::JarrowRudd::JarrowRudd(boost::shared_ptr<QuantLib::StochasticProcess1D> > const&, double, unsigned int, double)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::Slovakia::Slovakia(QuantLib::Slovakia::Market)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Poland::Poland()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to > `QuantLib::AdditiveEQPBinomialTree::AdditiveEQPBinomialTree(boost::shared_ptr<QuantLib::StochasticProcess1D> > const&, double, unsigned int, double)' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Japan::Japan()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::SouthAfrica::SouthAfrica()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Hungary::Hungary()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::SaudiArabia::SaudiArabia()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Switzerland::Switzerland()' > ../../qla/.libs/libQuantLibAddin.so: undefined reference > to `QuantLib::Sweden::Sweden()' > collect2: ld returned 1 exit status > make[1]: *** [QLADemo] Error 1 > make[1]: Leaving directory > `/home/pop/work/quantlib/install/QuantLibAddin-0.3.12/Clients/C++' > make: *** [all-recursive] Error 1 please help |
Hello,
> > ../../qla/.libs/libQuantLibAddin.so: undefined reference > > to `QuantLib::Canada::Canada()' QuantLibAddin compilation is failing because QuantLibAddin is looking for calendars which are not present in QuantLib. The calendars used by QuantLibAddin are defined in file qla/enumregistry.cpp The calendars which are giving you errors - Canada, NewZealand, etc. - do not appear in the file qla/enumregistry.cpp which was included in the released tarfile QuantlibAddin-0.3.12.tar.gz. These calendars were added to QuantLibAddin after the release. Is it possible that you're building not the released version of QuantLibAddin 0.3.12 but a post-release version of QuantLibAddin that was taken from the CVS repository? Regards, Eric |
Free forum by Nabble | Edit this page |