• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

C++ Client linking error

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(....)
 
reply
    Bookmark Topic Watch Topic
  • New Topic