Using gcc to link, when you want to link using 32-bit libc you type something like:
gcc
# install required packages sudo get-apt install gcc-multilib # link gcc -m32 file.o -o file
I have a repl hosted on repl.it that I need to use this in, how could I do that?
The assembly code im using (with the command as --32 file.s -o file.o ) is 32 bit and cannot link with the x86_64 libc.
as --32 file.s -o file.o
Linking 32-bit libc in repl.it
Linking 32-bit libc in repl.it
Using
gcc
to link, when you want to link using 32-bit libc you type something like:I have a repl hosted on repl.it that I need to use this in, how could I do that?
The assembly code im using (with the command
@19winterspas --32 file.s -o file.o
) is 32 bit and cannot link with the x86_64 libc.