[mpich-discuss] compiling 32-bit and 64-bit mpich2 applications

Kevin Van Workum vanw at tticluster.com
Wed Dec 31 11:01:25 CST 2008

Dear All,

How can I pass the -m32 (gcc) option to mpicxx to build 32-bit applications
on my 64-bit machine? I suppose I could have to separate installations of
mpich2, but I'd like to be able to use the same installation. This is the
error I get now if I try to use -m32:

$ mpicxx -m32 hello.cpp
/usr/bin/ld: skipping incompatible
/usr/local/mpich2-1.0.5p4-ssm/lib/libmpichcxx.a when searching for
/usr/bin/ld: cannot find -lmpichcxx
collect2: ld returned 1 exit status


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20081231/3c827fb2/attachment.htm>

More information about the mpich-discuss mailing list