I keep trying to compile a program I am running in linux using -m32.
I keep getting this error.
gcc -g -m32 encrypt.c -o encrypt
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 1
I googled and learned that running this command should fix it.
sudo apt-get install gcc-multilib g++-multilib
but I am still getting the same errors.
I keep getting this error.
gcc -g -m32 encrypt.c -o encrypt
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 1
I googled and learned that running this command should fix it.
sudo apt-get install gcc-multilib g++-multilib
but I am still getting the same errors.