Login  Register

Re: Quantlib Build Error

Posted by Luigi Ballabio on May 04, 2016; 8:48am
URL: http://quantlib.414.s1.nabble.com/Quantlib-Build-Error-tp17437p17439.html

From the error, I'm guessing you defined QL_HIGH_RESOLUTION_DATE in ql/userconfig.hpp, so the linker is looking for the Boost.Date library. Do you have it on your computer (it's called boost_date_time-xxx.lib, where the xxx part depends on the version), and did you add its path to the library path for the linker?

Luigi


On Wed, May 4, 2016 at 11:42 AM Leenesh Moodliyar <[hidden email]> wrote:
Hi 

I am currently using Visual Studio 2013 espress. I am trying to build and encountering the following error:

Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::CV::constrained_value<class boost::CV::simple_exception_policy<unsigned short,0,6,struct boost::gregorian::bad_weekday> >::operator unsigned short(void)const " (__imp_??B?$constrained_value@V?$simple_exception_policy@G$0A@$05Ubad_weekday@gregorian@boost@@@CV@boost@@@CV@boost@@QBEGXZ) referenced in function "struct tm __cdecl boost::gregorian::to_tm(class boost::gregorian::date const &)" (?to_tm@gregorian@boost@@YA?AUtm@@ABVdate@12@@Z) C:\Users\leenesh\Desktop\Quantlib\QuantLib-1.4\QuantLib-1.4\Examples\ConvertibleBonds\QuantLib-vc110-mt-gd.lib(date.obj) ConvertibleBonds
Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::gregorian::greg_weekday::greg_weekday(unsigned short)" (__imp_??0greg_weekday@gregorian@boost@@QAE@G@Z) referenced in function "public: class boost::gregorian::greg_weekday __thiscall boost::date_time::date<class boost::gregorian::date,class boost::gregorian::gregorian_calendar,class boost::gregorian::date_duration>::day_of_week(void)const " (?day_of_week@?$date@V0gregorian@boost@@Vgregorian_calendar@12@Vdate_duration@12@@date_time@boost@@QBE?AVgreg_weekday@gregorian@3@XZ) C:\Users\leenesh\Desktop\Quantlib\QuantLib-1.4\QuantLib-1.4\Examples\ConvertibleBonds\QuantLib-vc110-mt-gd.lib(date.obj) ConvertibleBonds
Error 6 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall boost::gregorian::greg_weekday::greg_weekday(unsigned short)" (__imp_??0greg_weekday@gregorian@boost@@QAE@G@Z) C:\Users\leenesh\Desktop\Quantlib\QuantLib-1.4\QuantLib-1.4\Examples\ConvertibleBonds\QuantLib-vc110-mt-gd.lib(dataparsers.obj) ConvertibleBonds


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users