gpt4 book ai didi

c++ - gSoap 错误 : xlocale. h 没有那个文件或目录

转载 作者:行者123 更新时间:2023-11-30 03:34:46 24 4
gpt4 key购买 nike

我正在尝试在 Windows 7 中创建 C++ soap web 服务客户端。我正在使用 gSoap 并且我遵循了 gSoap tutorial .

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

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/

关于c++ - gSoap 错误 : xlocale. h 没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41807770/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com