Can't link QuantLibXL from trunk

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

Can't link QuantLibXL from trunk

Piter Dias-4
Guys,

I was trying to play around the trunk version of QuantLib and QuantLibXL but got the link errors below while trying to generate the XLL. QuantLib itself compiles and runs the test suite.

My environment is Windows Vista with Visual C++ 2008 Express SP1.

Could someone help me?

Regards,


10>------ Rebuild All started: Project: QuantLibXLStatic, Configuration: Release Win32 ------

...

0>Linking...
10>   Creating library .\buildStatic\vc90\Release/QuantLibAddinStatic-vc90-mt-0_9_8.lib and object .\buildStatic\vc90\Release/QuantLibAddinStatic-vc90-mt-0_9_8.exp
10>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl registerDefaulttermstructures(struct xloper const &)" (?registerDefaulttermstructures@@YAXABUxloper@@@Z) referenced in function "void __cdecl registerQlFunctions(struct xloper const &)" (?registerQlFunctions@@YAXABUxloper@@@Z)
10>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl unregisterDefaulttermstructures(struct xloper const &)" (?unregisterDefaulttermstructures@@YAXABUxloper@@@Z) referenced in function "void __cdecl unregisterQlFunctions(struct xloper const &)" (?unregisterQlFunctions@@YAXABUxloper@@@Z)
10>..\xll\QuantLibXL-vc90-mt-0_9_8.xll : fatal error LNK1120: 2 unresolved externals
10>Build log was saved at <a class="moz-txt-link-rfc2396E" href="file://c:\Users\PiterDias\Development\src\QuantLib_trunk\QuantLibXL\qlxl\buildStatic\vc90\Release\BuildLog.htm">"file://c:\Users\Piter Dias\Development\src\QuantLib_trunk\QuantLibXL\qlxl\buildStatic\vc90\Release\BuildLog.htm"
10>QuantLibXLStatic - 3 error(s), 0 warning(s)

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

_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Can't link QuantLibXL from trunk

Piter Dias-4
I just had to include register_defaulttermstructures.cpp to the solution.

It is now linking, loading in Excel 2007 and I will start some tests.

Thanks

Piter Dias escreveu:
Guys,

I was trying to play around the trunk version of QuantLib and QuantLibXL but got the link errors below while trying to generate the XLL. QuantLib itself compiles and runs the test suite.

My environment is Windows Vista with Visual C++ 2008 Express SP1.

Could someone help me?

Regards,


10>------ Rebuild All started: Project: QuantLibXLStatic, Configuration: Release Win32 ------

...

0>Linking...
10>   Creating library .\buildStatic\vc90\Release/QuantLibAddinStatic-vc90-mt-0_9_8.lib and object .\buildStatic\vc90\Release/QuantLibAddinStatic-vc90-mt-0_9_8.exp
10>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl registerDefaulttermstructures(struct xloper const &)" (?registerDefaulttermstructures@@YAXABUxloper@@@Z) referenced in function "void __cdecl registerQlFunctions(struct xloper const &)" (?registerQlFunctions@@YAXABUxloper@@@Z)
10>register_all.obj : error LNK2019: unresolved external symbol "void __cdecl unregisterDefaulttermstructures(struct xloper const &)" (?unregisterDefaulttermstructures@@YAXABUxloper@@@Z) referenced in function "void __cdecl unregisterQlFunctions(struct xloper const &)" (?unregisterQlFunctions@@YAXABUxloper@@@Z)
10>..\xll\QuantLibXL-vc90-mt-0_9_8.xll : fatal error LNK1120: 2 unresolved externals
10>Build log was saved at <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="file://c:%5CUsers%5CPiterDias%5CDevelopment%5Csrc%5CQuantLib_trunk%5CQuantLibXL%5Cqlxl%5CbuildStatic%5Cvc90%5CRelease%5CBuildLog.htm">"file://c:\Users\Piter Dias\Development\src\QuantLib_trunk\QuantLibXL\qlxl\buildStatic\vc90\Release\BuildLog.htm"
10>QuantLibXLStatic - 3 error(s), 0 warning(s)

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

_______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev


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

_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev