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: [email protected] [[email protected]] on behalf of Wu, Xu [[email protected]] Sent: Monday, July 06, 2015 8:11 AM To: [email protected] 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