using XLW and QuantLib library
Posted by
Adjriou Belak on
URL: http://quantlib.414.s1.nabble.com/using-XLW-and-QuantLib-library-tp3432.html
Hi,
I'm trying to use quantlib library on the XLWExample file :
I am using Visual C++ 6.0.
LPXLOPER EXCEL_EXPORT xlDate(XlfOper day,XlfOper Month,XlfOper Year)
{
EXCEL_BEGIN;
// Converts d to a double.
int d=day.AsInt();
int m=Month.AsInt();
int y=Year.AsInt();
Date today(d, November, y);
double ret=today.lastDayOfMonth();
// Returns the result as a XlfOper.
return XlfOper(ret);
EXCEL_END;
}
And I can't compile this file. I have got this error message :
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_strin
[hidden email]) already defined in QuantLib-vc6-mt-0_3_7.lib(mathf.obj)
Does somebody use the quantlib library with XLW library ?
Do you have any idea to fix that problem ?
I compiled QuantLib library as Win32 debug project and my current project as Win32OntheEdgeRelease.
Regards and thanks for your help.
Découvrez le nouveau Yahoo! Mail :
250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
Avec Yahoo! faites un don et soutenez le
Téléthon !