我是靠谱客的博主 清脆中心,最近开发中收集的这篇文章主要介绍QT 移植Onvif问题 来源:http://stackoverflow.com/questions/36715446/gsoap-2-8-30-compatibility-with-vs6-c/38229649 gSOAP 2.8.30 compatibility with VS6 C++,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

来源: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 WIN32
m = 0;
wctomb_s(&m, buf, sizeof(buf), (wchar_t)(c & 0x7FFFFFFF));
#else
m = 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问题 来源:http://stackoverflow.com/questions/36715446/gsoap-2-8-30-compatibility-with-vs6-c/38229649 gSOAP 2.8.30 compatibility with VS6 C++的全部内容,希望文章能够帮你解决QT 移植Onvif问题 来源:http://stackoverflow.com/questions/36715446/gsoap-2-8-30-compatibility-with-vs6-c/38229649 gSOAP 2.8.30 compatibility with VS6 C++所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(51)

评论列表共有 0 条评论

立即
投稿
返回
顶部