gSoap error : xlocale.h No such file or directory - c++

I am trying to create C++ soap webservice client in Windows 7. I am using gSoap and I followed gSoap tutorial.
first and second commands worked but
c++ -o main main.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp
command did not work.
error is
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.
How can I solve it ?
I am using Windows 7 64 bit and mingw.
Thanks.

I had the same problem, I solved it by adding the -DWITH_NO_C_LOCALE option when compiling.
Source: https://sourceforge.net/p/gsoap2/bugs/1098/

Related

Gem5 Trouble compiling executable

I am receiving the below error even after explicit call to directory
gcc -I /../../gem5/include/gem5 -o /home/user/benchmarks/my_app my_app.cc.
gcc: error: my_app.cc: No such file or directory
gcc: fatal error: no input files
compilation terminated.
the directory where m5op resides is in this #include "/path/to/gem5/include/gem5/m5op.h"

How to fix cc1plus fatal error problem in C++?

When I try to use g++ compiler to my .cpp file it says
g++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated
I have already installed g++ and gcc, I also installed C++ extension in my Vscode. I try to uninstall g++ and vscode with its extension, but it didn't help.

Boost cross compilation with custom Yocto SDK fails with "No such file or directory" errors

I've been given a custom Yocto SDK so as to build a c++ app I've created and the third party libraries that the app depends on.
I've installed the SDK on a VM Ubuntu 16.04.
The first library I needed to build was boost. I use version. 1.64.
I follow the same steps I follow each time to build boost either on a Yocto SDK or a default arm compiler.
$ . /opt/environment-setup-poky-linux-gnueabi
$ ./bootstrap.sh --with-libraries=filesystem,iostreams,program_options,regex,system --prefix=/home/user/Libs
$ nano ~/user-config.jam where I place the following commands
$ using gcc : arm : /opt/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ --sysroot= /opt/sysroots/arm-poky-linux-gnueabi ;
$ ./b2 install toolset=gcc-arm link=shared threading=multi
However I always get the following error :
gcc.compile.c++ bin.v2/libs/system/build/gcc-arm/release/threading-multi/error_code.o
In file included from /opt/sysroots/arm-poky-linux-gnueabi/usr/include/gnu/stubs.h:55,
from /opt/sysroots/arm-poky-linux-gnueabi/usr/include/features.h:452,
from /opt/sysroots/arm-poky-linux-gnueabi/usr/include/c++/8.2.0/arm-poky-linux-gnueabi/bits/os_defines.h:39,
from /opt/sysroots/arm-poky-linux-gnueabi/usr/include/c++/8.2.0/arm-poky-linux-gnueabi/bits/c++config.h:508,
from /opt/sysroots/amr-poky-linux-gnueabi/usr/include/c++/8.2.0/cstddef:49,
from ./boost/config/compiler/gcc.hpp:165,
from ./boost/config.hpp:39,
from ./boost/system/config.hpp:13,
from ./boost/system/error_code.hpp:14,
from libs/system/src/error_code.cpp:16:
/opt/sysroots/arm-poky-linux-gnueabi/usr/include/gnu/stubs-32.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
# include <gnu/stubs-soft.h>
^~~~~~~~~~~~~~~~~~
I assume that the sysroot is not found correctly.
When I tried with a user-config.jam that does not contain --sysroot variable I get the error :
gcc.compile.c++ bin.v2/libs/system/build/gcc-arm/release/threading-multi/error_code.o
In file included from ./boost/config.hpp:39,
from ./boost/system/config.hpp:13,
from ./boost/system/error_code.hpp:14,
from libs/system/src/error_code.cpp:16:
./boost/config/compiler/gcc.hpp:165:10: fatal error: cstddef: No such file or directory
#include <cstddef>
^~~~~~~~~
compilation terminated.
The CC variable on the environment setup contains the follwoing:
export CC="arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=$SDKTARGETSYSROOT"
Is there something I can do to bypass these errors or the SDK is faulty and needs rebuilt ?
Thanks in advance

Emscripten: fatal error: sys/cdefs.h: No such file or directory when compiling for 32 bit

When trying to compile an existing C++ project with emscripten I got the following error:
emmake make LINUX
In file included from /usr/include/stdio.h:27:0,
from src/abinitplugin.c:50:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
I am able to compile for LINUXAMD64, but I need it specifically 32-bit. How do I solve it?

mysql++ examples not compiling mysql.h: No such file or directory compilation terminated

Whenever I attempt to compile some examples from the mysql++ library, I got the following error:
In file included from /home/testbed/Tools/mysql++-3.1.0/lib/cmdline.h:32:0,
from multiquery.cpp:32:
/home/testbed/Tools/mysql++-3.1.0/lib/common.h:189:20: fatal error: mysql.h:
No such file or directory
compilation terminated.
I have all the MySQL libraries installed and when I search for the mysql.h file, it is displayed!
What am I doing wrong?