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

Grindeanu, Iulian R. iulian at mcs.anl.gov
Mon Jul 6 08:36:56 CDT 2015


use the makefile generated by configure in the examples folder
it has all the required definitions, link libraries, etc

just type
make HelloMOAB and you should be fine
you are missing from your link line the moab library.
Iulian
________________________________
From: moab-dev-bounces at mcs.anl.gov [moab-dev-bounces at mcs.anl.gov] on behalf of Wu, Xu [xuwu at anl.gov]
Sent: Monday, July 06, 2015 8:11 AM
To: moab-dev at mcs.anl.gov
Subject: [MOAB-dev] MOAB error: Undefined symbols for architecture x86_64

Hi,

I tried a few MOAB examples, and got compile errors like below.
I am using OS X Yosemite 10.10.3.
Can anybody suggest a solution?
Thanks.


[xuwu][~/software/sharp_deps/moab-4.8.0/share/examples]> make HelloMOAB MOAB_DIR=/Users/xuwu/software/sharp_deps/moab-4.8.0 CPPFLAGS=-I/Users/xuwu/software/sharp_deps/moab-4.8.0/include/

mpicxx  -I/Users/xuwu/software/sharp_deps/moab-4.8.0/include/   HelloMOAB.cpp   -o HelloMOAB

Undefined symbols for architecture x86_64:

  "moab::Core::Core()", referenced from:

      _main in ccfOALBp.o

  "moab::Range::clear()", referenced from:

      moab::Range::~Range() in ccfOALBp.o

  "moab::MBError(int, char const*, char const*, char const*, moab::ErrorCode, char const*, moab::ErrorType)", referenced from:

      _main in ccfOALBp.o

  "moab::Range::size() const", referenced from:

      _main in ccfOALBp.o

ld: symbol(s) not found for architecture x86_64

collect2: error: ld returned 1 exit status

make: *** [HelloMOAB] Error 1


-Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20150706/051eb81c/attachment.html>


More information about the moab-dev mailing list