You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Jayasree Pamarthi <ja...@emergentsys.com> on 2004/01/28 16:16:55 UTC

Link error

Hello,

We have java Axis web services running on Tomcat server. So I am trying
to call the services in C++ client
 So I created client stubs and I followed the instruction (writing
client) of  axis documentations . I got this link errors. Can you please
help me out in this.


Linking...
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__connect@12
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__inet_addr@4
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__gethostbyname@4
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__htons@4
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__bind@12
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__socket@12
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__WSAStartup@8
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__send@16
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__recv@16
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__WSACleanup@0
client.lib(Channel.obj) : error LNK2001: unresolved external symbol
__imp__closesocket@4
Debug/calclient.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.



RE: Link error

Posted by Susantha Kumara <su...@opensource.lk>.
You have to provide the socket library wsock32.lib.

> -----Original Message-----
> From: Jayasree Pamarthi [mailto:jayasreep@emergentsys.com]
> Sent: Wednesday, January 28, 2004 9:17 PM
> To: axis-c-dev@ws.apache.org
> Subject: Link error 
> 
> 
> Hello,
> 
> We have java Axis web services running on Tomcat server. So I am trying
> to call the services in C++ client
>  So I created client stubs and I followed the instruction (writing
> client) of  axis documentations . I got this link errors. Can you please
> help me out in this.
> 
> 
> Linking...
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__connect@12
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__inet_addr@4
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__gethostbyname@4
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__htons@4
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__bind@12
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__socket@12
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__WSAStartup@8
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__send@16
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__recv@16
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__WSACleanup@0
> client.lib(Channel.obj) : error LNK2001: unresolved external symbol
> __imp__closesocket@4
> Debug/calclient.exe : fatal error LNK1120: 11 unresolved externals
> Error executing link.exe.
> 
> 
>