|
I have take the Quantlib 1.1 and QuantLib Swig 1.1.
Quantlib 1.1 compiled successfully with VS 2008 (x64 build), with exception of testsuite.
I generated the cs wrapper by running swig.cmd located in QuantLib-SWIG\CSharp folder.
When I compile Quantlib Swig 1.1 in VS 2008 (x64 build), I get the following error.
1>.\QuantlibWrapper.cpp(23) : error C2491: 'nQuantlibWrapper' : definition of dllimport data not allowed
1>.\QuantlibWrapper.cpp(27) : error C2491: 'fnQuantlibWrapper' : definition of dllimport function not allowed
If I comment the below piece of code in QuantlibWrapper.cpp in NQuantLibc project, I get the linking error.
fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-s.lib'
// This is an example of an exported variable
QUANTLIBWRAPPER_API int nQuantlibWrapper=0;
// This is an example of an exported function.
QUANTLIBWRAPPER_API int fnQuantlibWrapper(void)
{
return 42;
}
Pls advise.
Thanks in advance.
|