Compilation of gloox in MS Visual Studio 2005 EE
From: "Jacek Jablonski" <yacek87@xxxxxxxxx>
Date: Sat, 30 Jun 2007 14:30:45 +0200 (CEST)
Hi!
I would like to copile gloox in MS Visual Studio 2005 EE. I am very
very close to do that. There are some compilation errors I can't deal
with. They are inside dns.cpp and inside tlschannel.cpp. Here they
are:
dns.cpp:
*********************************************************************
f:\projekty\first\se\gloox-0.9.2\src\dns.cpp(162) : error C2664:
'DnsQuery_W' : cannot convert parameter 1 from 'const char *' to
'PCWSTR'
       Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
f:\projekty\first\se\gloox-0.9.2\src\dns.cpp(169) : error C2679:
binary '[' : no operator found which takes a right-hand operand of
type 'PWSTR' (or there is no acceptable conversion)
       d:\microsoft visual studio 8\vc\include\map(166): could be
'int &std::map<_Kty,_Ty>::operator [](const
std::basic_string<_Elem,_Traits,_Ax> &)'
       with
       [
           _Kty=std::string,
           _Ty=int,
           _Elem=char,
           _Traits=std::char_traits<char>,
           _Ax=std::allocator<char>
       ]
       while trying to match the argument list '(gloox::DNS::HostMap, PWSTR)'
f:\projekty\first\se\gloox-0.9.2\src\dns.cpp(243) : warning C4244: '='
: conversion from 'SOCKET' to 'int', possible loss of data
*********************************************************************
tlschannel.cpp:
*********************************************************************
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(77) : warning
C4267: '=' : conversion from 'size_t' to 'unsigned long', possible
loss of data
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(293) : error
C2664: 'InitializeSecurityContextW' : cannot convert parameter 3 from
'SEC_CHAR *' to 'SEC_WCHAR *'
       Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(339) : warning
C4267: '=' : conversion from 'size_t' to 'unsigned long', possible
loss of data
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(375) : error
C2664: 'InitializeSecurityContextW' : cannot convert parameter 3 from
'SEC_CHAR *' to 'SEC_WCHAR *'
       Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(470) : warning
C4244: '=' : conversion from 'time_t' to 'int', possible loss of data
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(654) : error
C2664: 'CertNameToStrW' : cannot convert parameter 4 from 'CHAR
[1000]' to 'LPWSTR'
       Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
f:\projekty\first\se\gloox-0.9.2\src\tlsschannel.cpp(663) : error
C2664: 'CertNameToStrW' : cannot convert parameter 4 from 'CHAR
[1000]' to 'LPWSTR'
       Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
*********************************************************************
Please help me. We could add new compiler to comatibility list.
Greetings,
Jacek