场景
编译gsoap调用库的时候出现如下问题:
stdsoap2.h:2975:3: 错误:
SOAP_LOCALE_T c_locale; /* if this does not compile, use ./configure --enable-xlocale or compile with -DWITH_INCLUDE_XLOCALE_H, or use -DWITH_NO_C_LOCALE to disable locale support */
^
make: *** [onvif_server_interface.o] 错误 1
解决
编辑stdsoap2.h头文件,包含头文件
#include <xlocale.h>