Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

C++ Client linking error  RSS feed

 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am using Axis C++ client to consume a web service. I get the client code generated sucessfully. But I can't build a client executable due to some linking error. I am using Microsoft dev studio. I followed the instruction http://ws.apache.org/axis/cpp/windev-guide.html#consumews but still have the follwoing error. Can someone help, please? Thank you very much.

John

-------------------Configuration: ClaimIQ - Win32 Release--------------------
Linking...
Creating library Release/ClaimIQ.lib and object Release/ClaimIQ.exp
LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Release/ClaimIQ.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

ClaimIQ.exe - 2 error(s), 0 warning(s)
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error suggest the you have Windows Application (Win32) project and that it can't find the WinMain entry point - did you provide one? Did you actually want to build a Windows Application (Win32)? (rather than a console application, dynamic link library, static library, etc.)
 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peer,
I have a compile to exe with some warning. dll-interface and string, etc. But let set it aside.

I have the following error when try to run the calculator code. Do you have any idea? Thanks.


C:\Tools\axis15\samples\client\calculator\Calculator\Debug>Calculator add 3 4

Using service at http://localhost/axis/calculator

Warning - The configuration file was not found (C:\Tools\tomcat5512\axiscpp/axiscpp.conf).
Using default values
Exception : DLOPEN FAILED in loading parser library
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, never dealt with the C++ version of Axis, so I wouldn't know.

Is the correct (dll) version of xerces available to it?
DLOPEN FAILED ... parser library

Also you seem to be having a problem as your file path includes both windows (\) and unix (/) directory delimiters which would make it impossible to open the file. Try to find the settings/properties that will fix that.
[ November 17, 2005: Message edited by: Peer Reynders ]
 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peer,
I copy the dll file to where the executable is. I got that resolved but I have the following error that still keep me from running it sucessfully.

C:\Tools\axis15\bin>calculator add 4 5

Using service at http://localhost/axis/calculator

Exception : DLOPEN FAILED in loading channel library


I have all the HTTPChannel.dll HTTPSSLChannel.dll in the same directory as the executable.
 
Kolya Ukrainian
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that HTTPChannel.dll and HTTPSSLChannel.dll is placed in folder which you enter in axiscpp.conf file (and this folder must be in %PATH%).
This error occurs in HTTPTransport.dll when try to LoadLibrary HTTPChannel.dll or HTTPSSLChannel.dll. See ChannelFactory.cpp, ChannelFactory::LoadChannelLibrary(....)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!