[MOAB-dev] MOAB error: Undefined symbols for architecture x86_64

Vijay S. Mahadevan vijay.m at gmail.com
Mon Jul 6 08:58:57 CDT 2015


MOAB_DIR is the installation directory and not the source directory.
That is why it is important to pick up the makefile from your
installed directory. This can be used to compile/link any sources in
MOAB examples folder or your own custom folder since necessary flags
will always be resolved.

1) Copy MOAB_INSTALL_DIR/examples/makefile to your examples directory
2) Do make HelloMOAB

If this fails, send us your makefile, MOAB source directory location,
MOAB installation directory location along with configure command.

Vijay

On Mon, Jul 6, 2015 at 3:48 PM, Wu, Xu <xuwu at anl.gov> wrote:
> Thanks Iulian,
>
> I tried that before, but the headers files can not be found.
> And I do have MOAB_DIR as my environment variable.
> I attached the makefile.in in the examples folder.
> Thanks,
>
> -Xu
>
> [xuwu][~/software/sharp_deps/moab-4.8.0/share/examples]> make HelloMOAB
>
> mpicxx     HelloMOAB.cpp   -o HelloMOAB
>
> HelloMOAB.cpp:10:25: fatal error: moab/Core.hpp: No such file or directory
>
>  #include "moab/Core.hpp"
>
>                          ^
>
> compilation terminated.
>
> make: *** [HelloMOAB] Error 1
>
> [xuwu][~/software/sharp_deps/moab-4.8.0/share/examples]> make HelloMOAB
> MOAB_DIR=/Users/xuwu/software/sharp_deps/moab-4.8.0
>
> mpicxx     HelloMOAB.cpp   -o HelloMOAB
>
> HelloMOAB.cpp:10:25: fatal error: moab/Core.hpp: No such file or directory
>
>  #include "moab/Core.hpp"
>
>                          ^
>
> compilation terminated.
>
> make: *** [HelloMOAB] Error 1
>
> [xuwu][~/software/sharp_deps/moab-4.8.0/share/examples]> echo $MOAB_DIR
>
> /Users/xuwu/software/sharp_deps/moab-4.8.0
>
>
>
> From: "Grindeanu, Iulian R." <iulian at mcs.anl.gov>
> Date: Monday, July 6, 2015 at 8:36 AM
> To: Xu Wu <xuwu at anl.gov>, "moab-dev at mcs.anl.gov" <moab-dev at mcs.anl.gov>
> Subject: RE: MOAB error: Undefined symbols for architecture x86_64
>
> make HelloMOAB MOAB_DIR=/Users/xuwu/software/sharp_deps/moab-4.8.0


More information about the moab-dev mailing list