Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbiesecke/414aa7313588c583d63f to your computer and use it in GitHub Desktop.
Save dbiesecke/414aa7313588c583d63f to your computer and use it in GitHub Desktop.
Linux - i386 support for x86_64

RPM based

  • # yum -y install glibc-devel.i386 libstdc++-devel.i386
  • # yum -y install glibc-devel.i686 glibc-devel ibstdc++-devel.i686
  • # zypper in glibc-devel-32bit

debian

  • $ sudo apt-get install g++-multilib libc6-dev-i386

Example

$ gcc -m32 -o output32 hello.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment