Created
January 3, 2017 16:42
-
-
Save shantanugoel/0f1387eadbd02d929845af16f1c3eddb to your computer and use it in GitHub Desktop.
Snippets for compiling related stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== | |
For compiling 32b executables with gcc on a 64b ubuntu machine | |
> sudo apt-get install libc6-dev-i386 (to get the 32b headers) | |
> use "-m32" flag with gcc (e.g. gcc -m32 a.c -o a.out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment