help configuring quantlib

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

help configuring quantlib

Uri Laserson
Hello,

I am trying to install quantlib on my machine, running Mac OS X.  I  
installed boost 1.31 using fink and I installed quantlib successfully  
(i believe).  When using g++, I manually add the necessary  
directories to the search path.  However, after trying to compile a  
simple program, I get the following linking error, even though I have  
put in the quantlib include in every relevant source file.  Does  
anyone know what the problem may be?  If you can, please reply to  
[hidden email]

Thanks!

Uri



/usr/bin/ld: Undefined symbols:
boost::assertion_failed(char const*, char const*, char const*, long)
QuantLib::InterestRate::impliedRate(double, double,  
QuantLib::DayCounter const&, QuantLib::Compounding, QuantLib::Frequency)
QuantLib::InterestRate::InterestRate(double, QuantLib::DayCounter  
const&, QuantLib::Compounding, QuantLib::Frequency)
QuantLib::DiscretizedOption::postAdjustValuesImpl()
QuantLib::Date::todaysDate()
QuantLib::Date::advance(QuantLib::Date const&, int, QuantLib::TimeUnit)
QuantLib::Date::maxDate()
QuantLib::Date::Date(long)
QuantLib::Date::Date()
QuantLib::Error::Error(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&)
QuantLib::InterestRate::compoundFactor(double) const
QuantLib::CompoundForward::forwardImpl(double) const
QuantLib::CompoundForward::discountImpl(double) const
QuantLib::CompoundForward::zeroYieldImpl(double) const
QuantLib::BlackVarianceCurve::blackVarianceImpl(double, double) const
QuantLib::AffineTermStructure::performCalculations() const
QuantLib::BlackVarianceSurface::blackVarianceImpl(double, double) const
QuantLib::BlackVolTermStructure::blackForwardVariance(double, double,  
double, bool) const
QuantLib::InArrearIndexedCoupon::convexityAdjustment(double) const
QuantLib::Calendar::advance(QuantLib::Date const&, int,  
QuantLib::TimeUnit, QuantLib::BusinessDayConvention) const
typeinfo for QuantLib::Error
vtable for QuantLib::Error
non-virtual thunk to  
QuantLib::AffineTermStructure::performCalculations() const
collect2: ld returned 1 exit status


Reply | Threaded
Open this post in threaded view
|

Re: help configuring quantlib

Luigi Ballabio

On 07/05/2006 06:32:55 PM, Uri Laserson wrote:
> When using g++, [...] I get the following linking error, even though  
> I have put in the quantlib include in every relevant source file.  
> Does anyone know what the problem may be?

When you link, you have to add the -lQuantLib flag to your g++ command  
line.

Luigi


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

Use every man after his desert, and who shall scape whipping?
-- Hamlet, Act II, scene II