Posted by
Vu Huynh on
Mar 18, 2002; 10:08am
URL: http://quantlib.414.s1.nabble.com/quantlib-Excel-tp1909p1911.html
Hi,
first you should change Excel32.lib to xlw.lib in file confing.msvc.h in
project xlw.
#ifdef _DEBUG
#pragma comment(lib,"xlwd.lib")
#else
#pragma comment(lib,"xlw.lib")
#endif
And then change preprocessor definition EXCEL32_NOIMPORTEXPORT to
XLW_NOIMPORTEXPORT in project QuantLibExcel setting (in C/C++ -> General
tab).
Cheers,
Vu
----- Original Message -----
From: "Luis Pereira" <
[hidden email]>
To: <
[hidden email]>
Sent: Monday, March 18, 2002 1:48 AM
Subject: Re: [Quantlib-users] quantlib & Excel
Hi all,
I downloaded the c++ wrapper (
http://www.ifrance.com/xlw/) which seems
exactly whar I need. I tryed to compile the test project with Visual C++ 6.0
with the stated options namely compile and link the dll in multi-threaded
mode, but I get
several errors like the below ones.
It´s probably the dependencies. I looked onto Project|Dependencies and I do
not have any dependences.
How can I include Excel32.lib as a dependence?
Thanks in advance,
Luís Pereira
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfOper::~XlfOper(void)" (??1XlfOper@@QAE@XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfOper::operator struct xloper *(void)" (??BXlfOper@@QAEPAUxloper@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfOper::XlfOper(double)" (??0XlfOper@@QAE@N@Z)
main.obj : error LNK2001: unresolved external symbol "public: double
__thiscall XlfOper::AsDouble(void)const " (?AsDouble@XlfOper@@QBENXZ)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall XlfExcel::FreeMemory(void)" (?FreeMemory@XlfExcel@@QAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: static class
XlfExcel & __cdecl XlfExcel::Instance(void)" (?Instance@XlfExcel@@SAAAV1@XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfOper::XlfOper(char const *)" (??0XlfOper@@QAE@PBD@Z)
main.obj : error LNK2001: unresolved external symbol "public: char *
__thiscall XlfOper::AsString(void)const " (?AsString@XlfOper@@QBEPADXZ)
main.obj : error LNK2001: unresolved external symbol "public: class XlfOper
__thiscall XlfRef::operator()(unsigned short,unsigned char)const "
(??RXlfRef@@QBE?AVXlfOper@@GE@Z)
main.obj : error LNK2001: unresolved external symbol "public: unsigned char
__thiscall XlfRef::GetNbCols(void)const " (?GetNbCols@XlfRef@@QBEEXZ)
main.obj : error LNK2001: unresolved external symbol "public: unsigned short
__thiscall XlfRef::GetNbRows(void)const " (?GetNbRows@XlfRef@@QBEGXZ)
main.obj : error LNK2001: unresolved external symbol "public: class XlfRef
__thiscall XlfOper::AsRef(void)const " (?AsRef@XlfOper@@QBE?AVXlfRef@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfArgDesc::~XlfArgDesc(void)" (??1XlfArgDesc@@QAE@XZ)
main.obj : error LNK2001: unresolved external symbol "public: virtual
__thiscall XlfFuncDesc::~XlfFuncDesc(void)" (??1XlfFuncDesc@@UAE@XZ)
main.obj : error LNK2001: unresolved external symbol "class XlfArgDescList
__cdecl operator+(class XlfArgDesc const &,class XlfArgDesc const &)"
(??H@YA?AVXlfArgDescList@@ABVXlfArgDesc@@0@Z)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall XlfAbstractCmdDesc::Register(void)const "
(?Register@XlfAbstractCmdDesc@@QBEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall XlfFuncDesc::SetArguments(class XlfArgDescList const &)"
(?SetArguments@XlfFuncDesc@@QAEXABVXlfArgDescList@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfArgDescList::XlfArgDescList(class XlfArgDesc const &)"
(??0XlfArgDescList@@QAE@ABVXlfArgDesc@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfFuncDesc::XlfFuncDesc(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
std::basic_string<char,struct std::char_traits<ch
ar>,class std::allocator<char> > const &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)" (??0XlfFuncDes
c@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@000@Z
)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
XlfArgDesc::XlfArgDesc(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
std::basic_string<char,struct std::char_traits<char
>,class std::allocator<char> > const &,char)"
(??0XlfArgDesc@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@
2@@std@@0D@Z)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall XlfExcel::SendMessageA(char const *)"
(?SendMessageA@XlfExcel@@QAEXPBD@Z)
main.obj : error LNK2001: unresolved external symbol "private: void
__thiscall XlfOper::Allocate(void)" (?Allocate@XlfOper@@AAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: char *
__thiscall XlfExcel::GetMemory(int)" (?GetMemory@XlfExcel@@QAEPADH@Z)
Debug/test.xll : fatal error LNK1120: 23 unresolved externals
Error executing link.exe.
test.xll - 24 error(s), 0 warning(s)
_______________________________________________
Quantlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at
http://mail.yahoo.com