To be able to compile code correctly on 32bit systems 64bit need to be available on the system also required 32bit libraries.
This version of the libraries (32bit) are not usually installed by default on 64bit systems.
personal experience, when you have compilation problems due to the generation of 32bit applications on 64bit machines, in most cases you can solve the problem by installing these packages on Ubuntu systems (with gcc already installed )
sudo apt-get install libc6-dev-i386or alternatively
sudo apt-get install gcc-multilib on these andsustem Fedora / RedHat (with gcc already installed): yum install glibc-
devel.i686 libgcc.i686
If these packages are not installed, typical errors that are obtained during compilation and linking are (in the absence of libc6-dev- glibc-i386 or devel.i686):
and (on systems Fedora / RedHat, in the presence of glibc-devel.i686 but no libgcc.i686):
[...] / usr / include / gnu / stubs.h: 7:27: error:
gnu/stubs-32.h: No such file or directory
[...]/ ld: can not find-lgcc_s
[...] collect2: ld returned 1 exit status
0 comments:
Post a Comment