Re: Re: Compilation/Link errors while building gloox-0.9 with WM6-pro SDK in VS2005
From: Rebecca_Hu@xxxxxxxxxxx
Date: Sat, 27 Dec 2008 06:38:52 +0100
Hi,

Deeply thanks for your response.
For the moment, I just replace std::ostringstream with sprintf() and
everything is ok.

Now, I try to keep the HAVE_WINTLS definition and recompile gloox in
VS2005 along with WM6 professional SDK, and three linkage errors occur:

==
Error 8     error LNK2019: unresolved external symbol 
InitializeSecurityContextA referenced in
function __unwind$49741 tlsschannel.obj
Error 9     error LNK2019: unresolved external symbol AcquireCredentialsHandleA 
referenced in
function __unwind$49741 tlsschannel.obj
Error 10    error LNK2019: unresolved external symbol QueryContextAttributesA 
referenced in function
"private: void __cdecl gloox::SChannel::setSizes(void)" 
(?setSizes@SChannel@gloox@@AAAXXZ)
tlsschannel.obj
Error 11    fatal error LNK1120: 3 unresolved externals     C:\Documents and
Settings\FR5-38\Desktop\Personal\xmpp_client\Windows Mobile 6 Professional SDK
==

From MSDN, we could find the methods InitializeSecurityContext(), 
AcquireCredentialsHandle() and
QueryContextAttributes() are
defined in secur32.lib. I added secur32.lib in linker's dependency but still 
cannot solve this
error.

Could you point out some clues to solve this problem?
And if we compile gloox with no TLS support, including WINTLS and GNUTLS, can 
we still  use gloox
library to connect to
some Jabber servers that require TLS, like gtalk server?


Sincerely,

Rebecca Hu






                                                                                
                    
             Jakob Schroeter                                                    
                    
             <js@xxxxxxxxxx>                                                    
                    
                                                                                
                 To 
             2008/12/20 上午 09:31               gloox-dev@xxxxxxxxxx             
                  
                                                                                
                 cc 
                                                                                
                    
                  Please respond to                                             
            Subject 
                gloox-dev@xxxxxxxxxx             [gloox-dev] Re: 
Compilation/Link errors while      
                                                 building gloox-0.9 with 
WM6-pro     SDK in VS2005  
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    




Hi,

The problem apears to be that the stdlib implementation used on win
mobile is not complete, i.e. it lacks (string)streams, for example.
All uses of streams need to be changed/the files removed.

cheers,
Jakob

Quoting Rebecca_Hu@xxxxxxxxxxx:

>
> Hi,
>
> Has anyone succeeded to build the stable branch of gloox-0.9 with
> Windows Mobile 6 Professional
> SDK(ARMV4I) in VS2005?
> In config.h.win, the following two lines have be commented out:
> #define HAVE_WINTLS           1
> #define HAVE_WINDNS_H   1
>
> The following are the command lines in C/C++ compiler's setting:
>
> /Od /Os /D "_WIN32_WCE" /D "GLOOX_EXPORTS" /D "ARM" /D "_ARM_" /D
> "ARMV4" /D "_WINDLL" /FD /EHsc
> /MTd /fp:fast /GR /Fo"Windows Mobile 6 Professional SDK
> (ARMV4I)\Debug/" /Fd"Windows Mobile 6
> Professional SDK (ARMV4I)\Debug/vc80.pdb" /nologo /c /Zi /TP
> /QRarch4t /QRinterwork
>
>
> And the settings in Linker are as follows:
>
> /OUT:"C:\Documents and
> Settings\FR5-38\Desktop\gloox-0.9-stable\Windows Mobile 6
> Professional SDK
> (ARMV4I)\Debug\gloox 0.dll" /NOLOGO /DLL /MANIFEST:NO
> /NODEFAULTLIB:"oldnames.lib" /DEBUG
> /PDB:"c:\Documents and
> Settings\FR5-38\Desktop\gloox-0.9-stable\Windows Mobile 6
> Professional SDK
> (ARMV4I)\Debug\gloox 0.pdb" /SUBSYSTEM:WINDOWSCE /MACHINE:THUMB
> /ERRORREPORT:PROMPT ws2.lib
> "C:\Program Files\Microsoft Visual Studio
> 8\SmartDevices\SDK\PocketPC2003\Lib\armv4\ccrtrtti.lib"
> "C:\Program Files\Microsoft Visual Studio
> 8\SmartDevices\SDK\PocketPC2003\Lib\armv4\secchk.lib"
> coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib
>
>
> I built the project and got lots of errors in
> connectionhttpproxy.cpp. Some errors are listed as
> below:
>  >.\src\connectionhttpproxy.cpp(193) : error C2079: 'os' uses undefined class
> 'std::basic_ostringstream<_Elem,_Traits,_Alloc>'
>>        with
>>        [
>>            _Elem=char,
>>            _Traits=std::char_traits<char>,
>>            _Alloc=std::allocator<char>
>>        ]
>> .\src\connectionhttpproxy.cpp(194) : error C2297: '<<' : illegal,
>> right operand has type 'const
> char [9]'
>> .\src\connectionhttpproxy.cpp(194) : error C2784:
>> 'std::basic_ostream<_Elem,_Traits> &std::operator
> <<(std::basic_ostream<_Elem,_Traits> &,const
> std::basic_string<_Elem,_Traits,_Alloc> &)' : could not
> deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'int'
>>        C:\Program Files\Microsoft Visual Studio
>> 8\VC\ce\include\string(637) : see declaration of
> 'std::operator <<'
>
>
>
> Then I tried to remove connectionhttpproxy.cpp from the source tree
> and re-built it again, the link
> error occurred...
>> error LNK2019: unresolved external symbol time referenced in
>> function __unwind$42858
> lastactivity.obj
>> fatal error LNK1120: 1 unresolved externals    C:\Documents and
> Settings\FR5-38\Desktop\gloox-0.9-stable\Windows Mobile 6 Professional SDK
>
>
> Could anybody help me point out what the problems might be?
> Any supports are deeply appreciated.
> Thanks.
>
>
> Rebecca Hu

--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx


-----------------------------------------------------
This email contains information that is for sole use of the intended recipient 
and may be
confidential or privileged.
If you are not the intended recipient, any further review, disclosure, copying, 
distribution, or use
of this email, or the contents of this email is prohibited.
Please notify the sender by reply this email and destroy the original email if 
your receipt of this
email is in error.
-----------------------------------------------------
-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx