Ask coding questions

← Back to all posts
Linking 32-bit libc in repl.it
Wuru

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?

Voters
2104105010013
Wuru
Comments
hotnewtop
19wintersp

Are you sure you need to do this with gcc-multilib? Can't you just use clang -m32? If you need to install a package, use install-pkg <package name>:

Wuru

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. @19wintersp