[英]error: 'memcpy_s' was not declared in this scope in gSOAP
I need to implement a client proxy for wcf web service using gSOAP in c++. 我需要在c ++中使用gSOAP为wcf Web服务实现客户端代理。 I used Getting Started page (in section "Example gSOAP client (C++)") for generating client proxy to test my web service. 我使用“ 入门”页面(在“示例gSOAP客户端(C ++)”部分中)中生成客户端代理来测试我的Web服务。 When I want to build project using 当我想使用构建项目时
c++ -o calcclient calcclient.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp
command I get following errors: 命令我得到以下错误:
It seems there are some standard library that does not included in stdsoap2.cpp
. 似乎有一些标准库未包含在stdsoap2.cpp
。 I use MinGW as compiler and my OS is Windows 8. 我使用MinGW作为编译器,我的操作系统是Windows 8。
memcpy_s
is a safe version of memcpy
and normally included with standard libraries. memcpy_s
是memcpy
的安全版本,通常包含在标准库中。 MSVC does it, MinGW64 too. MSVC做到了, MinGW64也是如此。
With Code::Blocks you get TDM GCC which is behind MinGW64 and seems not to have the secure API. 使用Code :: Blocks,您将获得TDM GCC ,它位于MinGW64之后,并且似乎没有安全的API。 Just load MinGW64, configure Code::Blocks to use this compiler and all should be fine. 只需加载MinGW64,将Code :: Blocks配置为使用此编译器,一切就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.