Suppose you have a C code file called hello.c.
- To build 64bit code, simply run "gcc hello.c"
- To build 32bit code, run "gcc -mabi=32 hello.c"
You use the same flag, "-mabi=32", to build 32bit code for g++ as well.
Users browsing this forum: No registered users and 2 guests