|
From: letian <luc...@ya...> - 2007-08-27 17:21:07
|
Hi Guys, I was using version 0.3.12 and just updated to 0.8.1 with boost 1_34_1. My sdk is VC8.0 in Visual Studio 2005. I noticed that a subdirectory "lib" was generated after building QuantLib, so I included it in the "lib" directory. There is a .lib file "QuantLib-vc80-mt-gd-0_8_1.lib" in the directory. The examples and test suites work fine. But when I'm compiling my own programs (which work fine under the old version, BTW), it gives a link error: error LNK2019: unresolved external symbol ". A typical line looks like the follows: CashflowDlg.obj : error LNK2019: unresolved external symbol "public: static double __cdecl QuantLib::CashFlows::npv(class std::vector<class boost::shared_ptr<class QuantLib::CashFlow>,class std::allocator<class boost::shared_ptr<class QuantLib::CashFlow> > > const &,class QuantLib::InterestRate const &,class QuantLib::Date)" (?npv@CashFlows@QuantLib@@SANABV?$vector@V?$shared_ptr@VCashFlow@QuantLib@@@boost@@V?$allocator@V?$shared_ptr@VCashFlow@QuantLib@@@boost@@@std@@@std@@ABVInterestRate@2@VDate@2@@Z) referenced in function "public: void __thiscall CCashflowDlg::OnBnClickedCompute(void)" (?OnBnClickedCompute@CCashflowDlg@@QAEXXZ) Does anyone know what happened here? Thank you very much in advance. PS: I got QL from sorceforge, but some core.hpp are missing, for example, ql/core.hpp, cashflows/core.hpp. A mistake? Regards, letian -- View this message in context: http://www.nabble.com/Help%21-QuantLib-link-error-tf4337053.html#a12353656 Sent from the quantlib-dev mailing list archive at Nabble.com. |