Reputation: 33
I'm trying to use and web service with gsoap. I've already generated all *.h and *.cpp using wsdl2h and soapcpp2, included all libraries, at least I think so, but when I build the project it gives me the message of undefined references to a lot of methods. The thing is all methods are declared in soapH.h (the prototype) and in soapC.cpp (the implementation).
Any help will be appreciated.
Upvotes: 1
Views: 4775
Reputation: 22241
In case anyone encounteres this problem: you do not have to include all the .cpp files in your makefile - some of them are included by the other. What you need also depends on whether you are building a client or a server.
Consult the documentation here to see which files are needed and for what.
Upvotes: 0
Reputation: 33
Solved, All I need was the original header file, I was getting one from the wsdl.
Upvotes: 0
Reputation: 36
It seems that you included some generated header files in your build, which should not. (e.g. the .h file generated from wsdl) There are descriptions in the comment section in each generated files, and you'd better read them to get familiar how to use them. Also, if you use openssl, the library should also be included during linking process(-lssl)
Upvotes: 2