Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

I'm trying to develop my first project using gSoap, Qt 5.3.

I created all the files with gsoap and included them in my Qt project.
The service is from www.webservicex.net, Acceleration Unit Convertor:

the files i got from the gsoap compiling process are:

soapH.h
soapStub.h
soapAccelerationUnitSoapProxy.h
AccelerationUnitSoap.nsmap

soapC.cpp
soapAccelerationUnitSoapProxy.cpp

I included them to my Qt project
I had to include also stdsoap2.h stdsoap2.cpp from gsoap directory.

When i try to compile my project i got an Unresolved symbol error

soapAccelerationUnitSoapProxy.obj:-1: error: LNK2019: riferimento al simbolo esterno soap_stream_fault non risolto nella funzione "public: virtual void __cdecl AccelerationUnitSoapProxy::soap_stream_fault(class std::basic_ostream<char,struct> > &)" (?soap_stream_fault@AccelerationUnitSoapProxy@@UEAAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)


sorry it is in italian. the unresolved symbol is soap_stream_fault.

How can I resolve this?does anyone has already faced this error?

thank you
Posted
Updated 1-Dec-14 23:10pm
v2

To translate error messages just search the web for the error code (LNK2019) and open the english version of the found MSDN site:
Quote:
unresolved external symbol 'symbol' referenced in function 'function'
It seems that you did not have built all necessary gSoap files or did not compile them as C++. See the gSoap User Guide:
Quote:
Important: Visual Studio users shopuld make sure to compile all gSOAP source files in C++ compilation mode. If you migrate to a project file .vcproj, please set CompileAs="2" in your .vcproj file. We have not yet generated the stubs for the C/C++ API. To do so, run the soapcpp2 compiler:

> soapcpp2 -i -C -Iimport calc.h
 
Share this answer
 
That function is defined in stdsoap2.cpp[^].... but as you can see, there are various macros that may stop the function from existing. Make sure you have everything set up properly and everything is being compiled as C++ (VisualStudio sets this on a per file basis, meaning you can have some files compiled as C and other as C++).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900