繁体   English   中英

gSoap错误:xlocale.h没有这样的文件或目录

[英]gSoap error : xlocale.h No such file or directory

我正在尝试在Windows 7中创建C ++ soap网络服务客户端。我正在使用gSoap,并且遵循了gSoap 教程

第一和第二个命令有效,但

c++ -o main main.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp

命令不起作用。

错误是

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\user\Desktop\soap>C:\MinGW\bin\mingw32-g++.exe -o main main.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp
In file included from soapStub.h:22:0,
                 from soapH.h:16,
                 from calc.nsmap:2,
                 from main.cpp:16:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from soapStub.h:22:0,
                 from soapH.h:16,
                 from soapC.cpp:19:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from soapStub.h:22:0,
                 from soapH.h:16,
                 from soapcalcProxy.h:16,
                 from soapcalcProxy.cpp:14:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.
In file included from stdsoap2.cpp:60:0:
stdsoap2.h:651:23: fatal error: xlocale.h: No such file or directory
compilation terminated.

我该如何解决? 我正在使用Windows 7 64位和mingw。 谢谢。

我有同样的问题,我在编译时通过添加“ -DWITH_NO_C_LOCALE”选项来解决。 来源: https : //sourceforge.net/p/gsoap2/bugs/1098/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM