Hi,

I'm having exactly the same problem.
Did you find a way to solve this? or we have to ignore these warnings?

Thanks in advance!

--- In gsoap@yahoogroups.com, "o771858" <o771...@...> wrote:
>
> I'm building a single executable that comprises a client and a service. I 
> thought I had this figured, but when I compile I get a lot of warnings of the 
> form:
> 
>  fileH.h:33:1: warning: "soap_write_byte" redefined
> 
> Sure enough, the #define statements in the xxxH.h files redefine stuff. 
> 
> I figured I must be doing it wrong so went to the c++ example in 
> /gsoap-2.7/gsoap/samples/link++ and performed a "make all" to discover the 
> secret. Instead it throws the same set of warnings (abbreviated output 
> below). Am I supposed to just ignore these, or is the sample broken?
> 
> Thanks,
> Kevin.
> ========================
> Example compiler output after soapcpp2 has executed successfully:
> 
> ...
> g++ -Wall -O2 -I.. -I../..  -c xmasmashupService.cpp
> g++ -Wall -O2 -I.. -I../..  -o xmas xmas.cpp envC.o stdsoap2.o gmtProxy.o 
> calccalcProxy.o xmasmashupService.o gmtC.cpp calcC.cpp xmasC.cpp
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:33:1: warning: "soap_write_byte" redefined
> In file included from xmas.cpp:48:
> envH.h:39:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:38:1: warning: "soap_read_byte" redefined
> In file included from xmas.cpp:48:
> envH.h:44:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:49:1: warning: "soap_write_int" redefined
> In file included from xmas.cpp:48:
> envH.h:55:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:54:1: warning: "soap_read_int" redefined
> In file included from xmas.cpp:48:
> envH.h:60:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:353:1: warning: "soap_write__QName" redefined
> In file included from xmas.cpp:48:
> envH.h:318:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:357:1: warning: "soap_read__QName" redefined
> In file included from xmas.cpp:48:
> envH.h:322:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:369:1: warning: "soap_write_string" redefined
> In file included from xmas.cpp:48:
> envH.h:334:1: warning: this is the location of the previous definition
> In file included from gmtProxy.h:10,
>                  from xmas.cpp:49:
> gmtH.h:373:1: warning: "soap_read_string" redefined
> In file included from xmas.cpp:48:
> envH.h:338:1: warning: this is the location of the previous definition
> In file included from calccalcProxy.h:10,
>                  from xmas.cpp:50:
> $ ^C
> ...
>


Reply via email to