[MOAB-dev] Compiling MOAB in 32-bit

James Porter jvporter at wisc.edu
Thu Mar 25 14:37:24 CDT 2010


I've finally gotten things working (sort of) on gnep to compile MOAB in
32-bit (it couldn't find the 32-bit libstdc++), but now I've found what
appears to be a legitimate error. Here's an enormous log of the
compilation, filled mostly with "undefined reference" errors. If you
search for the first instance of that string and then look up a couple
lines, you'll see where it's failing (I think):

    /bin/sh ../libtool --tag=CC   --mode=link cc  -Wall -pipe -O2 -DNDEBUG -m32   -o mbmem mbmem.o ../src/libMOAB.la -lm
    cc -Wall -pipe -O2 -DNDEBUG -m32 -o mbmem mbmem.o  ../src/.libs/libMOAB.a -lm  

This is trying to link the object file from tools/mbmem.cpp, which is
(obviously) a C++ file, but it's linking as a C file, causing all kinds
of chaos since it's not linking in libstdc++. Unfortunately, I still
don't know a huge amount about autotools, so I'm at a loss as to how to
convince it that it should be linking as C++ code.

- Jim



More information about the moab-dev mailing list