本文主要是介绍QT 移植Onvif问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
来源:http://stackoverflow.com/questions/36715446/gsoap-2-8-30-compatibility-with-vs6-c/38229649
gSOAP 2.8.30 compatibility with VS6 C++
I try to compile my window application with gSOAP 2.8.30 but i found an error which is
wctomb_s undeclared identifier
So i just wandering if the latest gSOAP is not compatible with the VC6++ since this error come from stdsoap2.cpp. Before this i'm using gSOAP 2.8.6 is working fine.
VS6 C++ does not support wctomb_s
(the recommended safer version of wctomb
). Upgrade to a newer VS C++ release or update the code in stdsoap2.cpp
function soap_string_in
by replacing:
#ifdef WIN32m = 0;wctomb_s(&m, buf, sizeof(buf), (wchar_t)(c & 0x7FFFFFFF));
#elsem = wctomb(buf, (wchar_t)(c & 0x7FFFFFFF));
#endif
with:
m = wctomb(buf, (wchar_t)(c & 0x7FFFFFFF));
at both of the two locations where wctomb_s
is used.
这篇关于QT 移植Onvif问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!