<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">use the makefile generated by configure in the examples folder<br>
it has all the required definitions, link libraries, etc<br>
<br>
just type <br>
make HelloMOAB and you should be fine<br>
you are missing from your link line the moab library.<br>
Iulian<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF187577"><font size="2" color="#000000" face="Tahoma"><b>From:</b> moab-dev-bounces@mcs.anl.gov [moab-dev-bounces@mcs.anl.gov] on behalf of Wu, Xu [xuwu@anl.gov]<br>
<b>Sent:</b> Monday, July 06, 2015 8:11 AM<br>
<b>To:</b> moab-dev@mcs.anl.gov<br>
<b>Subject:</b> [MOAB-dev] MOAB error: Undefined symbols for architecture x86_64<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi,</div>
<div><br>
</div>
<div>I tried a few MOAB examples, and got compile errors like below.</div>
<div>I am using OS X Yosemite 10.10.3.</div>
<div>Can anybody suggest a solution?</div>
<div>Thanks.</div>
<div><br>
</div>
<div>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
<span style="color:#55cbff">[xuwu]</span><span style="color:#3df02d">[~/software/sharp_deps/moab-4.8.0/share/examples]</span>> 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/</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
mpicxx  -I/Users/xuwu/software/sharp_deps/moab-4.8.0/include/   HelloMOAB.cpp   -o HelloMOAB</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
Undefined symbols for architecture x86_64:</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
  "moab::Core::Core()", referenced from:</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
      _main in ccfOALBp.o</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
  "moab::Range::clear()", referenced from:</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
      moab::Range::~Range() in ccfOALBp.o</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
  "moab::MBError(int, char const*, char const*, char const*, moab::ErrorCode, char const*, moab::ErrorType)", referenced from:</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
      _main in ccfOALBp.o</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
  "moab::Range::size() const", referenced from:</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
      _main in ccfOALBp.o</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
ld: symbol(s) not found for architecture x86_64</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
collect2: error: ld returned 1 exit status</p>
<p style="margin:0px; font-size:11px; font-family:'Andale Mono'; color:rgb(252,253,255); background-color:rgb(79,8,45)">
make: *** [HelloMOAB] Error 1</p>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-Xu</div>
</div>
</div>
</div>
</body>
</html>