Robert Heller <[EMAIL PROTECTED]> writes: >> I'm trying to find the right cc and linker flags to generate a 32-bit >> version of my program.
The correct command is 'g++ -m32 hello.cpp -o hello' You should *always* use correct compiler driver -- 'g++' for C++, 'gcc' for C. Contrary to popular belief they are not the same thing. > By default, most (all?) of the 64-bit x86 Linux distros only include > the 64-bit development packages. The exact opposite is true for all distributions I know of. The OP clearly *has* 32-bit development package; if he didn't the error would have been something like: "ld: can't find -lc library". Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus