Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

c++ - gSoap error '_set_errno' was not declared in this scope' when compiling gsoap example

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...