Re: ClientCppInstrumentIn Link Error with VC10
Posted by Lapin on
URL: http://quantlib.414.s1.nabble.com/ClientCppInstrumentIn-Link-Error-with-VC10-tp13738p13763.html
Hi Luigi,
Unfortunately this does not help.
I have compiled everything (I have AddinCpp-vc100-mt-1_2_0.lib and/or AddinCpp-vc100-mt-s-1_2_0.lib) and the path in the lib path but nothing seems to work...
The problem is located with the QuantLibAddinCpp name space and its related lib.
I have built the simpliest example possible:
#include <qlo/auto_link.hpp>
#include <qlo/qladdin.hpp>
#include <iostream>
#include <Addins/Cpp/addincpp.hpp>
using namespace QuantLibAddinCpp;
int main()
{
QuantLibAddinCpp::initializeAddin();
}
If I remove the initializeAddin() everything works fine (well it does nothing but it compiles though).
If you add it, there is a link problem as if it cannot find the function definition.
error LNK2001: unresolved external symbol "void __cdecl QuantLibAddinCpp::initializeAddin(void)"
I have added everything taht seems needed for it to compile in the Linker: additional librairy directories
C:\build_ql_1_2_0\QuantLibAddin\Addins\Cpp\lib
C:\build_ql_1_2_0\QuantLibAddin\lib
C:\build_ql_1_2_0\QuantLib\lib
C:\build_ql_1_2_0\ObjectHandler\lib
C:\build_ql_1_2_0\log4cxx\msvc\lib
Thanks