0

I have generated gsoap files needed to consume a webservice. In my class I have

CMyCaller::CMyCaller()
{
    m_pCurrencyConvertor= new T24WebServicesImplPortBinding;
}

When I compile I got :

Linking... MyCaller.obj : error LNK2001: unresolved external symbol _soap_new MyCaller.obj : error LNK2001: unresolved external symbol "int __cdecl soap_call___ns2__callOfs(struct soap *,char const *,char const *,class ns2__callOfs *,class ns2__callOfsResponse *)" (?soap_call___ns2__callOfs@@YAHPAUsoap@@PBD1PAVns2__callOfs@@P AVns2__callOfsResponse@@@Z)

I already include in the MyCaller.h the .h file of the T24WebServicesImplPortBinding class.

How do I resolve this?

Niall
  • 30,036
  • 10
  • 99
  • 142
Blood-HaZaRd
  • 2,049
  • 2
  • 20
  • 43
  • Does it help? http://stackoverflow.com/questions/10765446/undefined-references-when-compiling-gsoap-client – Ajay May 18 '16 at 10:54
  • No really, I have a .cpp files and I already included my SoapC.cpp, SoapClientcpp .. into my p^roject – Blood-HaZaRd May 18 '16 at 10:57
  • Is there an `extern "C"` in the header file some where (or mismatched) - from the names in the messages, it look like you are mixing C and C++ linkages. – Niall May 18 '16 at 10:59
  • I have no idea I just generated files using the soap2cpp command. all the process is held by gsoap. – Blood-HaZaRd May 18 '16 at 11:10

0 Answers0