以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML在语音技术中的应用 』   (http://bbs.xml.org.cn/list.asp?boardid=47)
----  Openvxi编译问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=47&rootid=&id=57133)


--  作者:Rey1023
--  发布时间:12/24/2007 12:53:00 PM

--  Openvxi编译问题
我是vxml新手,在编译Openvxi的时候出了问题,在编译前几个文件的时候都通过了,但在编译inet的时候出了几个错误,解决不了,错误如下:
d:\project\myopenvxi\inet\swihashmap.cpp(31) : error C2491: 'SWIHashMap::DEFAULT_CAPACITY' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\swihashmap.cpp(32) : error C2491: 'SWIHashMap::DEFAULT_LOAD_FACTOR' : definition of dllimport static data member not allowed
SWItrdMonitor.cpp
d:\project\myopenvxi\inet\switrdmonitor.cpp(46) : error C2491: 'SWItrdMonitor::SUCCESS' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\switrdmonitor.cpp(47) : error C2491: 'SWItrdMonitor::FAILURE' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\switrdmonitor.cpp(48) : error C2491: 'SWItrdMonitor::NOT_OWNER' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\switrdmonitor.cpp(227) : error C2491: 'SWItrdMonitor::_globalLock' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\switrdmonitor.cpp(228) : error C2491: 'SWItrdMonitor::_freeThreadList' : definition of dllimport static data member not allowed
d:\project\myopenvxi\inet\switrdmonitor.cpp(229) : error C2491: 'SWItrdMonitor::_freeMutexList' : definition of dllimport static data member not allowed
望高手帮忙一下,如果有编译过的源码,让我学习一下吧,谢谢了!

--  作者:zhu_ruixian
--  发布时间:12/24/2007 6:17:00 PM

--  
http://bbs.xml.org.cn/dispbbs.asp?boardID=47&ID=38526
--  作者:redtree_zhb
--  发布时间:1/31/2008 1:13:00 PM

--  
我遇到的问题跟楼主的一摸一样,我是按照zhu_ruixian 版主的《一步步实现OpenVXI》编译到INET出现链接问题的。zhu_ruixian 版主给出的链接下载,我也看了,是OpenVXI编译成功以后的DLL文件和LIB文件,并不是源代码呵。
--  作者:redtree_zhb
--  发布时间:1/31/2008 1:23:00 PM

--  
我是在2005下编译的,前面几个都通过了,就是INET有链接问题,其中该加的7个链接选项都按照版主的要求加了:
..\bin\value.lib
..\bin\trd.lib
ws2_32.lib
wininet.lib
..\bin\libeay32.lib
version.lib
..\bin\ssleay32.lib,还是有以下报错:
SBinetChannel.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall SWIList::size(void)const " (__imp_?size@SWIList@@QBEHXZ),该符号在函数 "public: bool __thiscall SBinetChannel::addCookie(class SBinetCookie *)" (?addCookie@SBinetChannel@@QAE_NPAVSBinetCookie@@@Z) 中被引用
SBinetChannel.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall SWIdataOutputStream::getSize(void)const " (__imp_?getSize@SWIdataOutputStream@@QBEHXZ),该符号在函数 "public: enum SWIstream::Result __thiscall SBinetChannel::readLine(class SWIinputStream *,class SWIdataOutputStream *)" (?readLine@SBinetChannel@@QAE?AW4Result@SWIstream@@PAVSWIinputStream@@PAVSWIdataOutputStream@@@Z) 中被引用
SBinetChannel.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall SWIdataOutputStream::reset(void)" (__imp_?reset@SWIdataOutputStream@@QAEXXZ),该符号在函数 "public: enum SWIstream::Result __thiscall SBinetChannel::readLine(class SWIinputStream *,class SWIdataOutputStream *)" (?readLine@SBinetChannel@@QAE?AW4Result@SWIstream@@PAVSWIinputStream@@PAVSWIdataOutputStream@@@Z) 中被引用
SBinetChannel.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIipAddress::~SWIipAddress(void)" (__imp_??1SWIipAddress@@UAE@XZ),该符号在函数 "public: class SBinetHttpConnection * __thiscall SBinetChannel::getHttpConnection(class SBinetURL const *,struct VXIMap const *)" (?getHttpConnection@SBinetChannel@@QAEPAVSBinetHttpConnection@@PBVSBinetURL@@PBUVXIMap@@@Z) 中被引用
SBinetHttpConnection.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIipAddress::~SWIipAddress(void)" (__imp_??1SWIipAddress@@UAE@XZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIipAddress::~SWIipAddress(void)" (__imp_??1SWIipAddress@@UAE@XZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIipAddress::~SWIipAddress(void)" (__imp_??1SWIipAddress@@UAE@XZ)
SBinetHttpStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall SWITimeWatch::~SWITimeWatch(void)" (__imp_??1SWITimeWatch@@QAE@XZ),该符号在函数 "private: enum VXIinetResult __thiscall SBinetHttpStream::initSocket(enum SBinetHttpStream::SubmitMethod,struct VXIMap const *,struct VXIMap *)" (?initSocket@SBinetHttpStream@@AAE?AW4VXIinetResult@@W4SubmitMethod@1@PBUVXIMap@@PAU4@@Z) 中被引用
SBinetSSLsocket.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: unsigned int __thiscall SWIsocket::getSD(void)const " (__imp_?getSD@SWIsocket@@IBEIXZ),该符号在函数 "public: virtual enum SWIstream::Result __thiscall SBinetSSLsocket::connect(class SWIipAddress const &,long)" (?connect@SBinetSSLsocket@@UAE?AW4Result@SWIstream@@ABVSWIipAddress@@J@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const sockinetaddr::`vftable'" (__imp_??_7sockinetaddr@@6B@),该符号在函数 "public: __thiscall sockinetaddr::sockinetaddr(class sockinetaddr const &)" (??0sockinetaddr@@QAE@ABV0@@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sockAddr::sockAddr(wchar_t const *,struct VXIlogInterface *,unsigned int)" (__imp_??0sockAddr@@QAE@PB_WPAUVXIlogInterface@@I@Z),该符号在函数 "public: __thiscall sockinetaddr::sockinetaddr(class sockinetaddr const &)" (??0sockinetaddr@@QAE@ABV0@@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall sockAddr::~sockAddr(void)" (__imp_??1sockAddr@@UAE@XZ),该符号在函数 __unwindfunclet$??0sockinetaddr@@QAE@PB_WPAUVXIlogInterface@@IKPBD2@Z$0 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const sockinetbuf::`vftable'{for `SWIutilLogger'}" (__imp_??_7sockinetbuf@@6BSWIutilLogger@@@),该符号在函数 "public: __thiscall sockinetbuf::sockinetbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0sockinetbuf@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const sockinetbuf::`vftable'{for `std::basic_streambuf<char,struct std::char_traits<char> >'}" (__imp_??_7sockinetbuf@@6B?$basic_streambuf@DU?$char_traits@D@std@@@std@@@),该符号在函数 "public: __thiscall sockinetbuf::sockinetbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0sockinetbuf@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall sockinetbuf::~sockinetbuf(void)" (__imp_??1sockinetbuf@@UAE@XZ),该符号在函数 "public: class sockbuf * __thiscall sockinetbuf::open(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (?open@sockinetbuf@@QAEPAVsockbuf@@PB_WPAUVXIlogInterface@@IW4type@2@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall sockinetaddr::~sockinetaddr(void)" (__imp_??1sockinetaddr@@UAE@XZ),该符号在函数 "public: class sockinetaddr __thiscall sockinetbuf::localaddr(void)const " (?localaddr@sockinetbuf@@QBE?AVsockinetaddr@@XZ) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual struct sockaddr * __thiscall sockinetaddr::addr(void)const " (__imp_?addr@sockinetaddr@@UBEPAUsockaddr@@XZ),该符号在函数 "public: class sockinetaddr __thiscall sockinetbuf::localaddr(void)const " (?localaddr@sockinetbuf@@QBE?AVsockinetaddr@@XZ) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual int __thiscall sockinetaddr::size(void)const " (__imp_?size@sockinetaddr@@UBEHXZ),该符号在函数 "public: class sockinetaddr __thiscall sockinetbuf::localaddr(void)const " (?localaddr@sockinetbuf@@QBE?AVsockinetaddr@@XZ) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual int __thiscall sockinetaddr::family(void)const " (__imp_?family@sockinetaddr@@UBEHXZ),该符号在函数 "public: int __thiscall sockinetbuf::localport(void)const " (?localport@sockinetbuf@@QBEHXZ) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const isockinet::`vftable'" (__imp_??_7isockinet@@6B@),该符号在函数 "public: __thiscall isockinet::isockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0isockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall isockstream::isockstream(class sockbuf *)" (__imp_??0isockstream@@QAE@PAVsockbuf@@@Z),该符号在函数 "public: __thiscall isockinet::isockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0isockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const isockinet::`vbtable'" (__imp_??_8isockinet@@7B@),该符号在函数 "public: __thiscall isockinet::isockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0isockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall sockinetbuf::sockinetbuf(class sockbuf const &)" (__imp_??0sockinetbuf@@QAE@ABVsockbuf@@@Z),该符号在函数 "public: __thiscall isockinet::isockinet(class sockbuf const &)" (??0isockinet@@QAE@ABVsockbuf@@@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const osockinet::`vftable'" (__imp_??_7osockinet@@6B@),该符号在函数 "public: __thiscall osockinet::osockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0osockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osockstream::osockstream(class sockbuf *)" (__imp_??0osockstream@@QAE@PAVsockbuf@@@Z),该符号在函数 "public: __thiscall osockinet::osockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0osockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const osockinet::`vbtable'" (__imp_??_8osockinet@@7B@),该符号在函数 "public: __thiscall osockinet::osockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0osockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const iosockinet::`vftable'" (__imp_??_7iosockinet@@6B@),该符号在函数 "public: __thiscall iosockinet::iosockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0iosockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall iosockstream::iosockstream(class sockbuf *)" (__imp_??0iosockstream@@QAE@PAVsockbuf@@@Z),该符号在函数 "public: __thiscall iosockinet::iosockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0iosockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const iosockinet::`vbtable'{for `std::basic_ostream<char,struct std::char_traits<char> >'}" (__imp_??_8iosockinet@@7B?$basic_ostream@DU?$char_traits@D@std@@@std@@@),该符号在函数 "public: __thiscall iosockinet::iosockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0iosockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockinet.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const iosockinet::`vbtable'{for `std::basic_istream<char,struct std::char_traits<char> >'}" (__imp_??_8iosockinet@@7B?$basic_istream@DU?$char_traits@D@std@@@std@@@),该符号在函数 "public: __thiscall iosockinet::iosockinet(wchar_t const *,struct VXIlogInterface *,unsigned int,enum sockbuf::type,int)" (??0iosockinet@@QAE@PB_WPAUVXIlogInterface@@IW4type@sockbuf@@H@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: int __thiscall sockbuf::xsetflags(int)" (__imp_?xsetflags@sockbuf@@IAEHH@Z),该符号在函数 "public: __thiscall sockbuf::sockbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,unsigned int)" (??0sockbuf@@QAE@PB_WPAUVXIlogInterface@@II@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: int __thiscall sockbuf::xflags(int)" (__imp_?xflags@sockbuf@@IAEHH@Z),该符号在函数 "public: __thiscall sockbuf::sockbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,unsigned int)" (??0sockbuf@@QAE@PB_WPAUVXIlogInterface@@II@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const sockbuf::`vftable'{for `SWIutilLogger'}" (__imp_??_7sockbuf@@6BSWIutilLogger@@@),该符号在函数 "public: __thiscall sockbuf::sockbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,unsigned int)" (??0sockbuf@@QAE@PB_WPAUVXIlogInterface@@II@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const sockbuf::`vftable'{for `std::basic_streambuf<char,struct std::char_traits<char> >'}" (__imp_??_7sockbuf@@6B?$basic_streambuf@DU?$char_traits@D@std@@@std@@@),该符号在函数 "public: __thiscall sockbuf::sockbuf(wchar_t const *,struct VXIlogInterface *,unsigned int,unsigned int)" (??0sockbuf@@QAE@PB_WPAUVXIlogInterface@@II@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: int __thiscall sockbuf::xflags(void)const " (__imp_?xflags@sockbuf@@IBEHXZ),该符号在函数 "public: class sockbuf & __thiscall sockbuf::operator=(class sockbuf const &)" (??4sockbuf@@QAEAAV0@ABV0@@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: char * __thiscall sockbuf::base(void)" (__imp_?base@sockbuf@@IAEPADXZ),该符号在函数 "public: virtual __thiscall sockbuf::~sockbuf(void)" (??1sockbuf@@UAE@XZ) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: void __thiscall sockbuf::setb(char *,char *,int)" (__imp_?setb@sockbuf@@IAEXPAD0H@Z),该符号在函数 "protected: virtual int __thiscall sockbuf::doallocate(void)" (?doallocate@sockbuf@@MAEHXZ) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: int __thiscall sockbuf::unbuffered(void)" (__imp_?unbuffered@sockbuf@@IAEHXZ),该符号在函数 "protected: virtual int __thiscall sockbuf::underflow(void)" (?underflow@sockbuf@@MAEHXZ) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: int __thiscall sockbuf::linebuffered(void)const " (__imp_?linebuffered@sockbuf@@IBEHXZ),该符号在函数 "protected: virtual int __thiscall sockbuf::overflow(int)" (?overflow@sockbuf@@MAEHH@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: void __thiscall sockbuf::xput_char(char)" (__imp_?xput_char@sockbuf@@IAEXD@Z),该符号在函数 "protected: virtual int __thiscall sockbuf::overflow(int)" (?overflow@sockbuf@@MAEHH@Z) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const isockstream::`vftable'" (__imp_??_7isockstream@@6B@),该符号在函数 "public: virtual __thiscall isockstream::~isockstream(void)" (??1isockstream@@UAE@XZ) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const osockstream::`vftable'" (__imp_??_7osockstream@@6B@),该符号在函数 "public: virtual __thiscall osockstream::~osockstream(void)" (??1osockstream@@UAE@XZ) 中被引用
sockstream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const iosockstream::`vftable'" (__imp_??_7iosockstream@@6B@),该符号在函数 "public: virtual __thiscall iosockstream::~iosockstream(void)" (??1iosockstream@@UAE@XZ) 中被引用
SWIbufferedInputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIbufferedInputStream::`vftable'" (__imp_??_7SWIbufferedInputStream@@6B@),该符号在函数 "public: __thiscall SWIbufferedInputStream::SWIbufferedInputStream(class SWIinputStream *,int,int,bool)" (??0SWIbufferedInputStream@@QAE@PAVSWIinputStream@@HH_N@Z) 中被引用
SWIbufferedOutputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIbufferedOutputStream::`vftable'" (__imp_??_7SWIbufferedOutputStream@@6B@),该符号在函数 "public: __thiscall SWIbufferedOutputStream::SWIbufferedOutputStream(class SWIoutputStream *,int,bool)" (??0SWIbufferedOutputStream@@QAE@PAVSWIoutputStream@@H_N@Z) 中被引用
SWIbufferedOutputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: bool __thiscall SWIfilterOutputStream::isOwner(void)const " (__imp_?isOwner@SWIfilterOutputStream@@IBE_NXZ),该符号在函数 "public: virtual __thiscall SWIbufferedOutputStream::~SWIbufferedOutputStream(void)" (??1SWIbufferedOutputStream@@UAE@XZ) 中被引用
SWIdataOutputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIdataOutputStream::`vftable'" (__imp_??_7SWIdataOutputStream@@6B@),该符号在函数 "public: __thiscall SWIdataOutputStream::SWIdataOutputStream(int)" (??0SWIdataOutputStream@@QAE@H@Z) 中被引用
SWIfilterInputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIfilterInputStream::`vftable'" (__imp_??_7SWIfilterInputStream@@6B@),该符号在函数 "public: __thiscall SWIfilterInputStream::SWIfilterInputStream(class SWIinputStream *,bool)" (??0SWIfilterInputStream@@QAE@PAVSWIinputStream@@_N@Z) 中被引用
SWIfilterInputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall SWIinputStream::SWIinputStream(void)" (__imp_??0SWIinputStream@@QAE@XZ),该符号在函数 "public: __thiscall SWIfilterInputStream::SWIfilterInputStream(class SWIinputStream *,bool)" (??0SWIfilterInputStream@@QAE@PAVSWIinputStream@@_N@Z) 中被引用
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall SWIinputStream::SWIinputStream(void)" (__imp_??0SWIinputStream@@QAE@XZ)
SWIfilterInputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIinputStream::~SWIinputStream(void)" (__imp_??1SWIinputStream@@UAE@XZ),该符号在函数 "public: virtual __thiscall SWIfilterInputStream::~SWIfilterInputStream(void)" (??1SWIfilterInputStream@@UAE@XZ) 中被引用
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIinputStream::~SWIinputStream(void)" (__imp_??1SWIinputStream@@UAE@XZ)
SWIfilterOutputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIfilterOutputStream::`vftable'" (__imp_??_7SWIfilterOutputStream@@6B@),该符号在函数 "public: __thiscall SWIfilterOutputStream::SWIfilterOutputStream(class SWIoutputStream *,bool)" (??0SWIfilterOutputStream@@QAE@PAVSWIoutputStream@@_N@Z) 中被引用
SWIHashMap.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static int const SWIHashMap::DEFAULT_CAPACITY" (__imp_?DEFAULT_CAPACITY@SWIHashMap@@2HB)
SWIHashMap.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static double const SWIHashMap::DEFAULT_LOAD_FACTOR" (__imp_?DEFAULT_LOAD_FACTOR@SWIHashMap@@2NB)
SWIHashMap.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIHashMap::`vftable'" (__imp_??_7SWIHashMap@@6B@),该符号在函数 "public: __thiscall SWIHashMap::SWIHashMap(void)" (??0SWIHashMap@@QAE@XZ) 中被引用
SWIipAddress.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIipAddress::`vftable'" (__imp_??_7SWIipAddress@@6B@),该符号在函数 "public: __thiscall SWIipAddress::SWIipAddress(class SWIipAddress const &)" (??0SWIipAddress@@QAE@ABV0@@Z) 中被引用
SWIipAddress.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall SWIHashable::SWIHashable(void)" (__imp_??0SWIHashable@@QAE@XZ),该符号在函数 "public: __thiscall SWIipAddress::SWIipAddress(class SWIipAddress const &)" (??0SWIipAddress@@QAE@ABV0@@Z) 中被引用
SWIipAddress.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall SWIHashable::~SWIHashable(void)" (__imp_??1SWIHashable@@UAE@XZ),该符号在函数 __unwindfunclet$??0SWIipAddress@@QAE@KPBD0PAVSWIutilLogger@@@Z$0 中被引用
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall SWIipAddress::operator void const *(void)const " (??BSWIipAddress@@UBEPBXXZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall SWIipAddress::operator void const *(void)const " (??BSWIipAddress@@UBEPBXXZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall SWIipAddress::operator void *(void)" (??BSWIipAddress@@UAEPAXXZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall SWIipAddress::operator void *(void)" (??BSWIipAddress@@UAEPAXXZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall SWIipAddress::size(void)const " (?size@SWIipAddress@@UBEHXZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall SWIipAddress::size(void)const " (?size@SWIipAddress@@UBEHXZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall SWIipAddress::family(void)const " (?family@SWIipAddress@@UBEHXZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall SWIipAddress::family(void)const " (?family@SWIipAddress@@UBEHXZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct sockaddr const * __thiscall SWIipAddress::addr(void)const " (?addr@SWIipAddress@@UBEPBUsockaddr@@XZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct sockaddr const * __thiscall SWIipAddress::addr(void)const " (?addr@SWIipAddress@@UBEPBUsockaddr@@XZ)
SWIipAddress.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct sockaddr * __thiscall SWIipAddress::addr(void)" (?addr@SWIipAddress@@UAEPAUsockaddr@@XZ)
SWIsocket.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct sockaddr * __thiscall SWIipAddress::addr(void)" (?addr@SWIipAddress@@UAEPAUsockaddr@@XZ)
SWIoutputStream.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIoutputStream::`vftable'" (__imp_??_7SWIoutputStream@@6B@),该符号在函数 "public: __thiscall SWIoutputStream::SWIoutputStream(void)" (??0SWIoutputStream@@QAE@XZ) 中被引用
SWIsocket.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIsocket::`vftable'" (__imp_??_7SWIsocket@@6B@),该符号在函数 "public: __thiscall SWIsocket::SWIsocket(enum SWIsocket::Type,class SWIutilLogger *)" (??0SWIsocket@@QAE@W4Type@0@PAVSWIutilLogger@@@Z) 中被引用
SWIsocket.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIsocket::InputStream::`vftable'" (__imp_??_7InputStream@SWIsocket@@6B@),该符号在函数 "public: __thiscall SWIsocket::InputStream::InputStream(class SWIsocket *)" (??0InputStream@SWIsocket@@QAE@PAV1@@Z) 中被引用
SWIsocket.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIsocket::OutputStream::`vftable'" (__imp_??_7OutputStream@SWIsocket@@6B@),该符号在函数 "public: __thiscall SWIsocket::OutputStream::OutputStream(class SWIsocket *)" (??0OutputStream@SWIsocket@@QAE@PAV1@@Z) 中被引用
SWItrdMonitor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWItrdMonitor::`vftable'" (__imp_??_7SWItrdMonitor@@6B@),该符号在函数 "public: __thiscall SWItrdMonitor::SWItrdMonitor(enum SWItrdMonitor::Policy)" (??0SWItrdMonitor@@QAE@W4Policy@0@@Z) 中被引用
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) private: static struct SWItrdMonitor::HandleListItem * SWItrdMonitor::_freeMutexList" (__imp_?_freeMutexList@SWItrdMonitor@@0RAUHandleListItem@1@A)
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) private: static void * SWItrdMonitor::_globalLock" (__imp_?_globalLock@SWItrdMonitor@@0PAXA)
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static int const SWItrdMonitor::FAILURE" (__imp_?FAILURE@SWItrdMonitor@@2HB)
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static int const SWItrdMonitor::SUCCESS" (__imp_?SUCCESS@SWItrdMonitor@@2HB)
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static int const SWItrdMonitor::NOT_OWNER" (__imp_?NOT_OWNER@SWItrdMonitor@@2HB)
SWItrdMonitor.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) private: static struct SWItrdMonitor::HandleListItem * SWItrdMonitor::_freeThreadList" (__imp_?_freeThreadList@SWItrdMonitor@@0RAUHandleListItem@1@A)
SWIutilLogger.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const SWIutilLogger::`vftable'" (__imp_??_7SWIutilLogger@@6B@),该符号在函数 "protected: __thiscall SWIutilLogger::SWIutilLogger(wchar_t const *,struct VXIlogInterface *,unsigned int)" (??0SWIutilLogger@@IAE@PB_WPAUVXIlogInterface@@I@Z) 中被引用
..\bin\inet.dll : fatal error LNK1120: 72 个无法解析的外部命令
生成日志保存在“file://e:\work\myOpenVXI\inet\Debug\BuildLog.htm”
inet - 84 个错误,213 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========

--  作者:redtree_zhb
--  发布时间:1/31/2008 2:30:00 PM

--  解决了,呵呵
是编译选项的问题,原先一直以为是链接选项,我原先编译的时候注释掉一些代码,实际上是因为某些编译选项没打开导致编译错误,打开以后,就OK了
--  作者:yuyuanb7
--  发布时间:4/16/2008 1:03:00 PM

--  
今天也遇到了与LZ同样的问题!不知道你怎么解决的?
--  作者:yuyuanb7
--  发布时间:4/16/2008 1:31:00 PM

--  
刚刚解决了这个问题!希望能多和大家探讨
--  作者:pp12345
--  发布时间:2/20/2009 2:12:00 PM

--  
我也遇到和lz一样的问题 不知道要怎么解决呢?
--  作者:cqh87
--  发布时间:8/17/2010 9:53:00 AM

--  
在swiutilheaderprefix.h 中加入如下语句,楼上的解决了也不说一下。
#ifndef SWIUTIL_EXPORTS
#define SWIUTIL_EXPORTS
#endif
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
107.422ms