Hi all, I write again because I cannot build QuantLibAddin yet....I built ObjectHandler and QuantLib-0.3.12 and everything worked, but when building QuantLibAddin the linker gives out the following lines: Deleting intermediate files and output files for project 'QuantLibAddin - Win32 Debug'. Deleting intermediate files and output files for project 'AddinExcelStatic - Win32 Debug'. --------------------Configuration: QuantLibAddin - Win32 Debug-------------------- Compiling... asianoption.cpp barrieroption.cpp basic.cpp basketoption.cpp capfloor.cpp clientutils.cpp cliquetoption.cpp complextyperegistry.cpp couponvectors.cpp dividendvanillaoption.cpp enumregistry.cpp fixedcouponbond.cpp forwardvanillaoption.cpp generalutils.cpp interpolation.cpp ohfunctions.cpp processes.cpp schedule.cpp shortratemodels.cpp simpleswap.cpp swap.cpp termstructures.cpp utilities.cpp vanillaoption.cpp volatilities.cpp xibor.cpp zerocouponbond.cpp zerocurve.cpp Creating library... --------------------Configuration: AddinExcelStatic - Win32 Debug-------------------- Compiling... basic.cpp capfloor.cpp couponvectors.cpp instruments.cpp interpolation.cpp options.cpp processes.cpp qladdin.cpp schedule.cpp session.cpp shortratemodels.cpp simpleswap.cpp swap.cpp termstructures.cpp utilities.cpp volatilities.cpp xibor.cpp Linking... Creating library buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.lib and object buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp volatilities.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_ string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) xibor.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_string@ DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) simpleswap.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_st ring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) swap.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_string@D U?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) termstructures.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basi c_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) utilities.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_str ing@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) options.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) processes.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_str ing@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) schedule.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_stri ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) shortratemodels.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$bas ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) capfloor.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_stri ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) couponvectors.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic _string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) instruments.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic_s tring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) interpolation.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::stringToChar(char *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?stringToChar@ObjHandler@@YAXPADABV?$basic _string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) couponvectors.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(double &,struct xloper const &,double const &)" (?operToScalar@ObjHandler@@YAXAANABUxloper@@ABN@Z) xibor.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(double &,struct xloper const &,double const &)" (?operToScalar@ObjHandler@@YAXAANABUxloper@@ABN@Z) couponvectors.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,double const &)" (?scalarToXloper@ObjHandler@@YAXAAUxloper@@ABN@Z) interpolation.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,double const &)" (?scalarToXloper@ObjHandler@@YAXAAUxloper@@ABN@Z) simpleswap.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,double const &)" (?scalarToXloper@ObjHandler@@YAXAAUxloper@@ABN@Z) instruments.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,struct xloper const &,class std::basic_string<char,struct st d::char_traits<char>,class std::allocator<char> > const &)" (?operToScalar@ObjHandler@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABUxloper@@ABV23@@Z) termstructures.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,struct xloper const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?operToScalar@ObjHandler@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABUxloper@@ABV23@@Z) qladdin.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?scalarToXloper@ObjHandler@@YAXAAUxlo per@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) utilities.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?scalarToXloper@ObjHandler@@YAXAAUx loper@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) qladdin.obj : error LNK2001: unresolved external symbol "void __cdecl ohRegisterFunctions(struct xloper const &)" (?ohRegisterFunctions@@YAXABUxloper@@@Z) qladdin.obj : error LNK2001: unresolved external symbol "void __cdecl ohUnregisterFunctions(struct xloper const &)" (?ohUnregisterFunctions@@YAXABUxloper@@@Z) schedule.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(bool &,struct xloper const &,bool const &)" (?operToScalar@ObjHandler@@YAXAA_NABUxloper@@AB_N@Z) schedule.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::scalarToXloper(struct xloper &,long const &)" (?scalarToXloper@ObjHandler@@YAXAAUxloper@@ABJ@Z) xibor.obj : error LNK2001: unresolved external symbol "void __cdecl ObjHandler::operToScalar(long &,struct xloper const &,long const &)" (?operToScalar@ObjHandler@@YAXAAJABUxloper@@ABJ@Z) QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohCallGC QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohDeleteAllObjects QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohDeleteObject QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohDependsOn QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohGetGcEnabled QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohHandleList QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohLogAllObjects QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohLogMessage QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohLogObject QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohObjectCount QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohPropertyNames QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohPropertyValue QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohSetGcEnabled QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohSetLogFile QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohSetLogLevel QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp : error LNK2001: unresolved external symbol _ohVersion xll\QuantLibAddinStatic-vc6-mt-sgd-0_3_12.xll : fatal error LNK1120: 26 unresolved externals Error executing link.exe. QuantLibAddinStatic-vc6-mt-sgd-0_3_12.xll - 45 error(s), 0 warning(s) I would be grateful if somebody could heelp me in solving this problem!! Thank you very much. Regards Jacopo ----------------------------------------------------------------------------- Il presente messaggio di posta elettronica non comporta alcun vincolo e non crea obblighi, salvo che ciò non sia espressamente previsto da un preventivo accordo scritto. Tale messaggio e' confidenziale. qualora lo avesse ricevuto per errore, La preghiamo di comunicarne la ricezione inviando una e-mail al mittente e di distruggerne il contenuto. La informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati potrebbe costituire reato. La ringraziamo per la collaborazione. This e-mail message does not imply or cause any obligation, unless it is provided by a previous written agreement. This message is confidential: if you have received it by mistake, please advise immediately the sender by e-mail and destroy the message and its attachments. You are hereby notified that any unauthorized use of the content of this message could constitute a criminal offence. Thank you. ----------------------------------------------------------------------------- |
Hi Jacopo,
Looks like QuantLibAddin is failing to link to ObjectHandler. You say ObjectHandler built OK, please check - Are you using ObjectHandler version 0.1.3? - Is environment variable OBJECT_HANDLER_DIR set correctly? - Have you built ObjectHandler project ohxllib, configuration Debug? - The ObjectHandler lib file that QuantLibAddin is failing to find is called ... C:\Program Files\ObjectHandler-0.1.3\ohxl\ohxllib\lib\ObjectHandler-vc6-mt-sgd-0_1_3.lib ...please check whether that file exists. Thanks, Eric On 6/5/06, [hidden email] <[hidden email]> wrote: > > Hi all, > I write again because I cannot build QuantLibAddin yet....I built > ObjectHandler and QuantLib-0.3.12 and everything worked, but when building > QuantLibAddin the linker gives out the following lines: > Linking... > Creating library > buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.lib > and object > buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp > volatilities.obj : error LNK2001: unresolved external symbol "void __cdecl > ObjHandler::stringToChar(char *,class std::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> > const &)" > (?stringToChar@ObjHandler@@YAXPADABV?$basic_ > string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) |
Hi Eric, everything looks like ok now....I built QuanLibAddin debug version and it was successful! Thank you for the moment...... Regards Jacopo
Hi Jacopo, Looks like QuantLibAddin is failing to link to ObjectHandler. You say ObjectHandler built OK, please check - Are you using ObjectHandler version 0.1.3? - Is environment variable OBJECT_HANDLER_DIR set correctly? - Have you built ObjectHandler project ohxllib, configuration Debug? - The ObjectHandler lib file that QuantLibAddin is failing to find is called ... C:\Program Files\ObjectHandler-0.1.3\ohxl\ohxllib\lib\ObjectHandler-vc6-mt-sgd-0_1_3.lib ...please check whether that file exists. Thanks, Eric On 6/5/06, [hidden email] <[hidden email]> wrote: > > Hi all, > I write again because I cannot build QuantLibAddin yet....I built > ObjectHandler and QuantLib-0.3.12 and everything worked, but when building > QuantLibAddin the linker gives out the following lines: > Linking... > Creating library > buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.lib > and object > buildStatic\vc6\Debug/QuantLibAddinStatic-vc6-mt-sgd-0_3_12.exp > volatilities.obj : error LNK2001: unresolved external symbol "void __cdecl > ObjHandler::stringToChar(char *,class std::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> > const &)" > (?stringToChar@ObjHandler@@YAXPADABV?$basic_ > string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users ----------------------------------------------------------------------------- Il presente messaggio di posta elettronica non comporta alcun vincolo e non crea obblighi, salvo che ciò non sia espressamente previsto da un preventivo accordo scritto. Tale messaggio e' confidenziale. qualora lo avesse ricevuto per errore, La preghiamo di comunicarne la ricezione inviando una e-mail al mittente e di distruggerne il contenuto. La informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati potrebbe costituire reato. La ringraziamo per la collaborazione. This e-mail message does not imply or cause any obligation, unless it is provided by a previous written agreement. This message is confidential: if you have received it by mistake, please advise immediately the sender by e-mail and destroy the message and its attachments. You are hereby notified that any unauthorized use of the content of this message could constitute a criminal offence. Thank you. ----------------------------------------------------------------------------- |
Free forum by Nabble | Edit this page |