problem linking quantlib - help

Posted by Lucio Dinoto on
URL: http://quantlib.414.s1.nabble.com/Building-with-Microsoft-Visual-C-2010-tp8402p8403.html

Hi guys,

I am new in QuantLib, almost finishing the first integration of the lib in my code but with outstanding 4 linking problems (see below). I have not been able to solve by myself.

Have you seen that before? any tip?

Let me tell you a little bit about the context:
debug mode compiles and linked without problemas
All my solution's project as set with Multi-threaded DLL (/MD) and Multi-threaded Debug DLL (/MD) for Release and Debug mode respectivelly
one of my .h includes:  #include <ql/qldefines.hpp>
                                    #include <ql/auto_link.hpp>
                                    #include <ql/quantlib.hpp>
my code is hibrid one, C/C++. which means that all my .h includes:
#ifdef __cplusplus
extern "C"
{
#endif
Finally, test samples work fine when compiled and executed as available in the library.

MANY THANKS for any help.


11>Linking...
XXXX.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::~_Container_base(void)" (__imp_??1_Container_base@std@@QAE@XZ) referenced in function "public: virtual __thiscall QuantLib::Calendar::Impl::~Impl(void)" (??1Impl@Calendar@QuantLib@@UAE@XZ)
XXXX.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base::_Container_base(void)" (__imp_??0_Container_base@std@@QAE@XZ) referenced in function "public: __thiscall std::set<class QuantLib::Date,struct std::less<class QuantLib::Date>,class std::allocator<class QuantLib::Date> >::set<class QuantLib::Date,struct std::less<class QuantLib::Date>,class std::allocator<class QuantLib::Date> >(void)" (??0?$set@VDate@QuantLib@@U?$less@VDate@QuantLib@@@std@@V?$allocator@VDate@QuantLib@@@4@@std@@QAE@XZ)
XXXX.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (__imp_?_Debug_message@std@@YAXPB_W0I@Z) referenced in function "public: void __thiscall std::_Iterator_base::_Orphan_me(void)" (?_Orphan_me@_Iterator_base@std@@QAEXXZ)
XXXX.obj) : error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: bool __thiscall std::_Tree<class std::_Tset_traits<class QuantLib::Date,struct std::less<class QuantLib::Date>,class std::allocator<class QuantLib::Date>,0> >::const_iterator::operator==(class std::_Tree<class std::_Tset_traits<class QuantLib::Date,struct std::less<class QuantLib::Date>,class std::allocator<class QuantLib::Date>,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tset_traits@VDate@QuantLib@@U?$less@VDate@QuantLib@@@std@@V?$allocator@VDate@QuantLib@@@4@$0A@@std@@@std@@QBE_NABV012@@Z)
11>Release/Monitor.exe : fatal error LNK1120: 4 unresolved externals






Este e-mail puede contener información privilegiada o confidencial y concierne únicamente a la persona a la que está dirigido.

Si este mensaje no está dirigido a usted, por favor notifique al remitente, bórrelo y no lo lea, no actúe en base a él, no lo imprima, no lo divulgue, no lo copie, no lo retenga ni lo distribuya. En el siguiente link encontrará otros términos importantes relacionados con este e-mail: http://www.luminaamericas.com/email_terms.htm


This E-mail may contain privileged or confidential information and it is intended only for the
use of the named recipient.

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. In the following link you will find important additional terms related to this E-mail:http://www.luminaamericas.com/email_terms.htm



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users