I am trying to compile 'https://www.cs.fsu.edu/~engelen/quote.html' example using gsoap 2.8.111 on windows. but I keep getting below error.
I am using exactly the same steps mentioned on the example. From the error '_set_errno' or related function are not found, but these should have been auto generated with the soap commands.
Any pointer what could be the problem seeing the error message.
D:Downloadgsoap_2.8.111gsoap-2.8gsoapinwin64>g++ -o quote quote.c soapC.cpp soapClient.cpp stdsoap2.cpp
In file included from stdsoap2.cpp:65:0:
stdsoap2.cpp: In function 'SOCKET soap_accept(soap*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:7031:3: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2int(soap*, const char*, int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:16173:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2long(soap*, const char*, long int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:16272:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2LONG64(soap*, const char*, long long int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:16367:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2unsignedInt(soap*, const char*, unsigned int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:17165:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2unsignedLong(soap*, const char*, long unsigned int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:17264:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_s2ULONG64(soap*, const char*, long long unsigned int*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:17363:5: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
^~~~~~~~~~~~~~~~
stdsoap2.cpp: In function 'int soap_try_connect_command(soap*, int, const char*, const char*)':
stdsoap2.h:1156:40: error: '_set_errno' was not declared in this scope
# define soap_reset_errno _set_errno(0)
^
stdsoap2.cpp:21474:3: note: in expansion of macro 'soap_reset_errno'
soap_reset_errno;
question from:
https://stackoverflow.com/questions/65921195/gsoap-error-set-errno-was-not-declared-in-this-scope-when-compiling-gsoap-ex 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…