Re: compiling gloox 1.0-beta2 with MSVC2005
From: Alban Taraire <alban.taraire@xxxxxxxxx>
Date: Fri, 7 Mar 2008 05:44:18 +0100 (CET)
On Friday 07 March 2008 12:13:47 Alban Taraire wrote:
> I checked a bit more, the gloox.dsp file refers to softwareversion.h and
> softwareversion.cpp but these files are nowhere to be found in the tarball.
>
> Are these files important or can be removed from gloox.dsp ?
> Since it works on Linux without them, I guess they are obsolete ?

i excluded the softwareversion.* files from the project, this lead to the 
following linking errors :

Linking...
   Creating library .\Debug/gloox.lib and object .\Debug/gloox.exp
clientbase.obj : error LNK2019: unresolved external symbol "public: virtual 
__thiscall gloox::EventDispatcher::~EventDispatcher(void)" 
(??1EventDispatcher@gloox@@UAE@XZ) referenced in function 
__unwindfunclet$??0ClientBase@gloox@@QAE@ABV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@0H@Z$0
clientbase.obj : error LNK2019: unresolved external symbol "public: __thiscall 
gloox::EventDispatcher::EventDispatcher(void)" 
(??0EventDispatcher@gloox@@QAE@XZ) referenced in function "public: __thiscall 
gloox::ClientBase::ClientBase(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 &,int)" (??0ClientBase@gloox@@QAE@ABV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0H@Z)
clientbase.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall gloox::EventDispatcher::registerEventHandler(class 
gloox::EventHandler *,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &)" 
(?registerEventHandler@EventDispatcher@gloox@@QAEXPAVEventHandler@2@ABV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in 
function "public: void __thiscall gloox::ClientBase::xmppPing(class 
gloox::JID const &,class gloox::EventHandler *)" 
(?xmppPing@ClientBase@gloox@@QAEXABVJID@2@PAVEventHandler@2@@Z)
clientbase.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall gloox::EventDispatcher::dispatch(class gloox::Event const &)" 
(?dispatch@EventDispatcher@gloox@@QAEXABVEvent@2@@Z) referenced in 
function "private: virtual bool __thiscall gloox::ClientBase::handleIq(class 
gloox::IQ const &)" (?handleIq@ClientBase@gloox@@EAE_NABVIQ@2@@Z)
clientbase.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall gloox::EventDispatcher::dispatch(class gloox::Event const &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,bool)" 
(?dispatch@EventDispatcher@gloox@@QAEXABVEvent@2@ABV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in 
function "private: virtual void __thiscall 
gloox::ClientBase::handleIqID(class gloox::IQ const &,int)" 
(?handleIqID@ClientBase@gloox@@EAEXABVIQ@2@H@Z)
dns.obj : error LNK2019: unresolved external symbol _DnsRecordListFree@8 
referenced in function "public: static class std::map<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,int,struct std::less<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > >,class std::allocator<struct std::pair<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const ,int> > > __cdecl gloox::DNS::resolve(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 &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class gloox::LogSink const &)" 
(?resolve@DNS@gloox@@SA?AV?$map@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@ABV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@00ABVLogSink@2@@Z)
dns.obj : error LNK2019: unresolved external symbol _DnsQuery_A@24 referenced 
in function "public: static class std::map<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,int,struct std::less<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > >,class std::allocator<struct std::pair<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const ,int> > > __cdecl gloox::DNS::resolve(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 &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class gloox::LogSink const &)" 
(?resolve@DNS@gloox@@SA?AV?$map@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@ABV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@00ABVLogSink@2@@Z)
pubsubevent.obj : error LNK2001: unresolved external symbol "private: static 
class std::list<class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> >,class 
std::allocator<class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > > > const 
gloox::PubSub::Event::m_emptyStringList" 
(?m_emptyStringList@Event@PubSub@gloox@@0V?$list@V?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@B)
pubsubevent.obj : error LNK2001: unresolved external symbol "private: static 
class std::list<struct gloox::PubSub::Event::ItemOperation *,class 
std::allocator<struct gloox::PubSub::Event::ItemOperation *> > const 
gloox::PubSub::Event::m_emptyOperationList" 
(?m_emptyOperationList@Event@PubSub@gloox@@0V?
$list@PAUItemOperation@Event@PubSub@gloox@@V?
$allocator@PAUItemOperation@Event@PubSub@gloox@@@std@@@std@@B)
tlsschannel.obj : error LNK2019: unresolved external symbol _EncryptMessage@16 
referenced in function "public: virtual bool __thiscall 
gloox::SChannel::encrypt(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &)" 
(?encrypt@SChannel@gloox@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@@Z)
tlsschannel.obj : error LNK2019: unresolved external symbol _DecryptMessage@16 
referenced in function "public: virtual int __thiscall 
gloox::SChannel::decrypt(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &)" 
(?decrypt@SChannel@gloox@@UAEHABV?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@@Z)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__FreeCredentialsHandle@4 referenced in function "public: virtual void 
__thiscall gloox::SChannel::cleanup(void)" (?cleanup@SChannel@gloox@@UAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__DeleteSecurityContext@4 referenced in function "public: virtual void 
__thiscall gloox::SChannel::cleanup(void)" (?cleanup@SChannel@gloox@@UAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
_FreeContextBuffer@4 referenced in function "public: virtual bool __thiscall 
gloox::SChannel::handshake(void)" (?handshake@SChannel@gloox@@UAE_NXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
_InitializeSecurityContextA@48 referenced in function "public: virtual bool 
__thiscall gloox::SChannel::handshake(void)" 
(?handshake@SChannel@gloox@@UAE_NXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
_AcquireCredentialsHandleA@36 referenced in function "public: virtual bool 
__thiscall gloox::SChannel::handshake(void)" 
(?handshake@SChannel@gloox@@UAE_NXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
_QueryContextAttributesA@12 referenced in function "private: void __thiscall 
gloox::SChannel::setSizes(void)" (?setSizes@SChannel@gloox@@AAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__CertFreeCertificateChain@4 referenced in function "private: void 
__thiscall gloox::SChannel::validateCert(void)" 
(?validateCert@SChannel@gloox@@AAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__CertVerifyCertificateChainPolicy@16 referenced in function "private: 
void __thiscall gloox::SChannel::validateCert(void)" 
(?validateCert@SChannel@gloox@@AAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__CertGetCertificateChain@32 referenced in function "private: void 
__thiscall gloox::SChannel::validateCert(void)" 
(?validateCert@SChannel@gloox@@AAEXXZ)
tlsschannel.obj : error LNK2019: unresolved external symbol 
__imp__CertNameToStrA@20 referenced in function "private: void __thiscall 
gloox::SChannel::certData(void)" (?certData@SChannel@gloox@@AAEXXZ)
.\Debug/gloox.dll : fatal error LNK1120: 21 unresolved externals
Build log was saved at "file://e:
\gloox-1.0-beta2\gloox-1.0-beta2\Debug\BuildLog.htm"
gloox - 22 error(s), 124 warning(s)

Alban