Hi all,

This is my struct defined under a namespace

namespace Name1{

struct SOAP_ENV__Header
{
   custom_class1 *A;
   custom_class2 *B;
}

class SOAP_CMAC custom_class1
{
 char* a;
 struct soap *soap;
}

} //end namespace - Name1

In my client code, if I try to use 
   soap->header->A->a = "1";
it gives me linking error saying forward declaration of SOAP_ENV__Header which 
is already present in stdsoap2.h

So I try to remove the WITH_NOGLOBAL #define and compile with/without 
-DWITH_NONAMESPACE, I m getting linking error.

I m not sure the way I m doing this is correct or not.

Can someone please help me? I did go through gsoap documentation, but I m not 
pretty clear.

Thanks in advance

-Anand




Reply via email to