Linking problems

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

Linking problems

Dan Moraru
I have installed  QuantLib-0.3.10 using boost_1_32_0 and tried to compile some examples. The result was a plenthora of linking problems, see below.
Any hint would be greatly appreciated.

Dan






>g++ DiscreteHedging.cpp

/tmp/ccx1SMmO.o(.text+0x321): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.text+0x469): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.text+0x6e6): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::BlackFormula::BlackFormula[in-charge](double, double, double, boost::shared_ptr<QuantLib::StrikedTypePayoff> const&)'
/tmp/ccx1SMmO.o(.text+0x6f8): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::BlackFormula::value() const'
/tmp/ccx1SMmO.o(.text+0x724): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::BlackFormula::delta(double) const'
/tmp/ccx1SMmO.o(.text+0x8f7): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::BlackFormula::BlackFormula[in-charge](double, double, double, boost::shared_ptr<QuantLib::StrikedTypePayoff> const&)'
/tmp/ccx1SMmO.o(.text+0x915): In function `ReplicationPathPricer::operator()(QuantLib::Old::Path const&) const':
: undefined reference to `QuantLib::BlackFormula::delta(double) const'
/tmp/ccx1SMmO.o(.text+0xbc5): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.text+0xd0d): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.text+0xd7a): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::Date::todaysDate()'
/tmp/ccx1SMmO.o(.text+0x1289): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::BlackScholesProcess::BlackScholesProcess[in-charge](QuantLib::Handle<QuantLib::Quote> const&, QuantLib::Handle<QuantLib::YieldTermStructure> const&, QuantLib::Handle<QuantLib::YieldTermStructure> const&, QuantLib::Handle<QuantLib::BlackVolTermStructure> const&, boost::shared_ptr<QuantLib::StochasticProcess1D::discretization> const&)'
/tmp/ccx1SMmO.o(.text+0x15b0): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::GeneralStatistics::mean() const'
/tmp/ccx1SMmO.o(.text+0x15ec): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::GeneralStatistics::skewness() const'
/tmp/ccx1SMmO.o(.text+0x160a): In function `ReplicationError::compute(unsigned, unsigned)':
: undefined reference to `QuantLib::GeneralStatistics::kurtosis() const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old13PathGeneratorINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEEdjRKS7_b+0x62): In function `QuantLib::Old::PathGenerator<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::PathGenerator[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, double, unsigned, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&, bool)':
: undefined reference to `QuantLib::TimeGrid::TimeGrid[in-charge](double, unsigned)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old13PathGeneratorINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEEdjRKS7_b+0x29d): In function `QuantLib::Old::PathGenerator<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::PathGenerator[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, double, unsigned, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&, bool)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old13PathGeneratorINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEEdjRKS7_b+0x3c4): In function `QuantLib::Old::PathGenerator<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::PathGenerator[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, double, unsigned, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&, bool)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEC1Ejm+0x1d): In function `QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>::RandomSequenceGenerator[in-charge](unsigned, unsigned long)':
: undefined reference to `QuantLib::MersenneTwisterUniformRng::MersenneTwisterUniformRng[in-charge](unsigned long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib23InverseCumulativeNormalEEdeEv+0x23): In function `boost::shared_ptr<QuantLib::InverseCumulativeNormal>::operator*() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEERKNS_8TimeGridERKS6_+0x218): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::BrownianBridge[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, QuantLib::TimeGrid const&, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEERKNS_8TimeGridERKS6_+0x35d): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::BrownianBridge[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, QuantLib::TimeGrid const&, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEERKNS_8TimeGridERKS6_+0x4ce): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::BrownianBridge[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, QuantLib::TimeGrid const&, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEEC1ERKN5boost10shared_ptrINS_19StochasticProcess1DEEERKNS_8TimeGridERKS6_+0x5f5): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::BrownianBridge[in-charge](boost::shared_ptr<QuantLib::StochasticProcess1D> const&, QuantLib::TimeGrid const&, QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> const&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib3Old13PathGeneratorINS1_20InverseCumulativeRsgINS1_23RandomSequenceGeneratorINS1_25MersenneTwisterUniformRngEEENS1_23InverseCumulativeNormalEEEEEEptEv+0x23): In function `boost::shared_ptr<QuantLib::Old::PathGenerator<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> > >::operator->() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib10PathPricerINS1_3Old4PathEdEEEdeEv+0x23): In function `boost::shared_ptr<QuantLib::PathPricer<QuantLib::Old::Path, double> >::operator*() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEE10initializeERKSt6vectorIdSaIdEE+0x13e): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::initialize(std::vector<double, std::allocator<double> > const&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib14BrownianBridgeINS_20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEEEE10initializeERKSt6vectorIdSaIdEE+0x286): In function `QuantLib::BrownianBridge<QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal> >::initialize(std::vector<double, std::allocator<double> > const&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib20InverseCumulativeRsgINS_23RandomSequenceGeneratorINS_25MersenneTwisterUniformRngEEENS_23InverseCumulativeNormalEE12nextSequenceEv+0x6a): In function `QuantLib::InverseCumulativeRsg<QuantLib::RandomSequenceGenerator<QuantLib::MersenneTwisterUniformRng>, QuantLib::InverseCumulativeNormal>::nextSequence() const':
: undefined reference to `QuantLib::InverseCumulativeNormal::operator()(double) const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib5ErrorC1ERKS0_+0x1d): In function `QuantLib::Error::Error[in-charge](QuantLib::Error const&)':
: undefined reference to `vtable for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib5ErrorD1Ev+0xb): In function `QuantLib::Error::~Error [in-charge]()':
: undefined reference to `vtable for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib19EulerDiscretizationC1Ev+0x2b): In function `QuantLib::EulerDiscretization::EulerDiscretization[in-charge]()':
: undefined reference to `vtable for QuantLib::EulerDiscretization'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib19EulerDiscretizationC1Ev+0x37): In function `QuantLib::EulerDiscretization::EulerDiscretization[in-charge]()':
: undefined reference to `vtable for QuantLib::EulerDiscretization'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib23InverseCumulativeNormalC1Edd+0x145): In function `QuantLib::InverseCumulativeNormal::InverseCumulativeNormal[in-charge](double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib23InverseCumulativeNormalC1Edd+0x28d): In function `QuantLib::InverseCumulativeNormal::InverseCumulativeNormal[in-charge](double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib17GeneralStatistics17standardDeviationEv+0x10): In function `QuantLib::GeneralStatistics::standardDeviation() const':
: undefined reference to `QuantLib::GeneralStatistics::variance() const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib17GeneralStatistics3addEdd+0xff): In function `QuantLib::GeneralStatistics::add(double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib17GeneralStatistics3addEdd+0x247): In function `QuantLib::GeneralStatistics::add(double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old4PathC1ERKNS_8TimeGridERKNS_5ArrayES7_+0x1dc): In function `QuantLib::Old::Path::Path[in-charge](QuantLib::TimeGrid const&, QuantLib::Array const&, QuantLib::Array const&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old4PathC1ERKNS_8TimeGridERKNS_5ArrayES7_+0x321): In function `QuantLib::Old::Path::Path[in-charge](QuantLib::TimeGrid const&, QuantLib::Array const&, QuantLib::Array const&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old4PathC1ERKNS_8TimeGridERKNS_5ArrayES7_+0x4fc): In function `QuantLib::Old::Path::Path[in-charge](QuantLib::TimeGrid const&, QuantLib::Array const&, QuantLib::Array const&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib3Old4PathC1ERKNS_8TimeGridERKNS_5ArrayES7_+0x623): In function `QuantLib::Old::Path::Path[in-charge](QuantLib::TimeGrid const&, QuantLib::Array const&, QuantLib::Array const&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib25MersenneTwisterUniformRng4nextEv+0x11): In function `QuantLib::MersenneTwisterUniformRng::next() const':
: undefined reference to `QuantLib::MersenneTwisterUniformRng::nextInt32() const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib11FlatForwardC1ERKNS_4DateEdRKNS_10DayCounterENS_11CompoundingENS_9FrequencyE+0x102): In function `QuantLib::FlatForward::FlatForward[in-charge](QuantLib::Date const&, double, QuantLib::DayCounter const&, QuantLib::Compounding, QuantLib::Frequency)':
: undefined reference to `QuantLib::InterestRate::InterestRate[in-charge]()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN16ReplicationErrorC1EN8QuantLib6Option4TypeEddddd+0x1af): In function `ReplicationError::ReplicationError[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::BlackFormula::BlackFormula[in-charge](double, double, double, boost::shared_ptr<QuantLib::StrikedTypePayoff> const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN16ReplicationErrorC1EN8QuantLib6Option4TypeEddddd+0x1cc): In function `ReplicationError::ReplicationError[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::BlackFormula::value() const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN16ReplicationErrorC1EN8QuantLib6Option4TypeEddddd+0x214): In function `ReplicationError::ReplicationError[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::BlackFormula::vega(double) const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x18e): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x2d6): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x3f4): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x524): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x642): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x772): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x890): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0x9c0): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0xade): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN21ReplicationPathPricerC1EN8QuantLib6Option4TypeEddddd+0xc0e): In function `ReplicationPathPricer::ReplicationPathPricer[in-charge](QuantLib::Option::Type, double, double, double, double, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib10ObservableEEptEv+0x23): In function `boost::shared_ptr<QuantLib::Observable>::operator->() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib19StochasticProcess1DEEptEv+0x23): In function `boost::shared_ptr<QuantLib::StochasticProcess1D>::operator->() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib13TermStructure13referenceDateEv+0x74): In function `QuantLib::TermStructure::referenceDate() const':
: undefined reference to `QuantLib::Calendar::advance(QuantLib::Date const&, int, QuantLib::TimeUnit, QuantLib::BusinessDayConvention) const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib5Array8allocateEj+0x1f1): In function `QuantLib::Array::allocate(unsigned)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib5Array8allocateEj+0x339): In function `QuantLib::Array::allocate(unsigned)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib21BlackVolTermStructure6acceptERNS_14AcyclicVisitorE+0x12e): In function `QuantLib::BlackVolTermStructure::accept(QuantLib::AcyclicVisitor&)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib21BlackVolTermStructure6acceptERNS_14AcyclicVisitorE+0x276): In function `QuantLib::BlackVolTermStructure::accept(QuantLib::AcyclicVisitor&)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib17StrikedTypePayoffC2ENS_6Option4TypeEd+0x119): In function `QuantLib::StrikedTypePayoff::StrikedTypePayoff[not-in-charge](QuantLib::Option::Type, double)':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib17StrikedTypePayoffC2ENS_6Option4TypeEd+0x261): In function `QuantLib::StrikedTypePayoff::StrikedTypePayoff[not-in-charge](QuantLib::Option::Type, double)':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib18PlainVanillaPayoffclEd+0x185): In function `QuantLib::PlainVanillaPayoff::operator()(double) const':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib18PlainVanillaPayoffclEd+0x2cd): In function `QuantLib::PlainVanillaPayoff::operator()(double) const':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib16BlackConstantVol7maxDateEv+0xf): In function `QuantLib::BlackConstantVol::maxDate() const':
: undefined reference to `QuantLib::Date::maxDate()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib11FlatForward7maxDateEv+0xf): In function `QuantLib::FlatForward::maxDate() const':
: undefined reference to `QuantLib::Date::maxDate()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib11FlatForward10updateRateEv+0x51): In function `QuantLib::FlatForward::updateRate()':
: undefined reference to `QuantLib::InterestRate::InterestRate[in-charge](double, QuantLib::DayCounter const&, QuantLib::Compounding, QuantLib::Frequency)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib8Settings9DateProxycvNS_4DateEEv+0x11): In function `QuantLib::Settings::DateProxy::operator QuantLib::Date() const':
: undefined reference to `QuantLib::Date::Date[in-charge]()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib8Settings9DateProxycvNS_4DateEEv+0x3b): In function `QuantLib::Settings::DateProxy::operator QuantLib::Date() const':
: undefined reference to `QuantLib::Date::todaysDate()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib13TermStructure17timeFromReferenceERKNS_4DateE+0x10): In function `QuantLib::TermStructure::timeFromReference(QuantLib::Date const&) const':
: undefined reference to `QuantLib::Date::Date[in-charge]()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib13TermStructure17timeFromReferenceERKNS_4DateE+0x23): In function `QuantLib::TermStructure::timeFromReference(QuantLib::Date const&) const':
: undefined reference to `QuantLib::Date::Date[in-charge]()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib12InterestRate14discountFactorEd+0x1f): In function `QuantLib::InterestRate::discountFactor(double) const':
: undefined reference to `QuantLib::InterestRate::compoundFactor(double) const'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib5QuoteEEptEv+0x23): In function `boost::shared_ptr<QuantLib::Quote>::operator->() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib4LinkINS1_5QuoteEEEEdeEv+0x23): In function `boost::shared_ptr<QuantLib::Link<QuantLib::Quote> >::operator*() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib10DayCounter12yearFractionERKNS_4DateES3_S3_S3_+0xe6): In function `QuantLib::DayCounter::yearFraction(QuantLib::Date const&, QuantLib::Date const&, QuantLib::Date const&, QuantLib::Date const&) const':
: undefined reference to `QuantLib::Error::Error[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK8QuantLib10DayCounter12yearFractionERKNS_4DateES3_S3_S3_+0x22e): In function `QuantLib::DayCounter::yearFraction(QuantLib::Date const&, QuantLib::Date const&, QuantLib::Date const&, QuantLib::Date const&) const':
: undefined reference to `typeinfo for QuantLib::Error'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib8SettingsEEdeEv+0x23): In function `boost::shared_ptr<QuantLib::Settings>::operator*() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZN8QuantLib8Settings9DateProxyC1Ev+0x11): In function `QuantLib::Settings::DateProxy::DateProxy[in-charge]()':
: undefined reference to `QuantLib::Date::Date[in-charge]()'
/tmp/ccx1SMmO.o(.gnu.linkonce.t._ZNK5boost10shared_ptrIN8QuantLib14DayCounterImplEEptEv+0x23): In function `boost::shared_ptr<QuantLib::DayCounterImpl>::operator->() const':
: undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
collect2: ld returned 1 exit status


<a href="http://us.rd.yahoo.com/evt=38381/ ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html ">Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
Reply | Threaded
Open this post in threaded view
|

Re: Linking problems

Luigi Ballabio
On Jan 21, 2006, at 9:05 PM, Dan Moraru wrote:

> I have installed  QuantLib-0.3.10 using boost_1_32_0 and tried to
> compile some examples. The result was a plenthora of linking problems,
> see below.
>
>  >g++ DiscreteHedging.cpp

That would be

g++ DiscreteHedging.cpp -lQuantLib

since you have to tell g++ to link to the library.

Luigi