<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 26, 2015 at 10:40 AM, Mark Brethen <span dir="ltr">&lt;<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><span style="color:rgb(34,34,34)">The link error occurs here:</span><br></div></div>
<br>
:info:build /usr/bin/clang++ -c -o astgen.o astgen.cc -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -I../smbase<br>
:info:build /usr/bin/clang++ -o astgen gramlex.o agrampar.tab.o ccsstr.o agramlex.yy.o reporterr.o embedded.o ast.hand.o asthelp.o xmlhelp.o agrampar.o astgen.o -g -Wall -Werror ../smbase/libsmbase.a<br>
:info:build Undefined symbols for architecture x86_64:<br>
:info:build   &quot;agrampar_yyerror(void*, char const*)&quot;, referenced from:<br>
:info:build       agrampar_yyparse(void*) in agrampar.tab.o<br>
:info:build   &quot;StringTable::add(char const*)&quot;, referenced from:<br>
:info:build       GrammarLexer::yylexInc() in gramlex.o<br>
:info:build       GrammarLexer::curFuncBody() const in gramlex.o<br>
:info:build       GrammarLexer::curToken() const in gramlex.o<br>
:info:build       GrammarLexer::addString(char*, int) const in gramlex.o<br>
:info:build       GrammarLexer::curDeclName() const in gramlex.o<br>
:info:build   &quot;StringTable::StringTable()&quot;, referenced from:<br>
:info:build       __GLOBAL__sub_I_agrampar.cc in agrampar.o<br>
:info:build   &quot;StringTable::~StringTable()&quot;, referenced from:<br>
:info:build       __GLOBAL__sub_I_agrampar.cc in agrampar.o<br>
<br>
It seems like its not finding the object files, which are part of the build in ../ast.<br></blockquote><div><br></div><div>It hasn&#39;t been told to look there; did you expect it to go hunting on its own? I suspect there&#39;s a .a file in there that needs to be explicitly linked the same way libsmbase.a is. </div></div><div class="gmail_extra"><br></div>I also see no reason to consider this a 32 vs. 64 bit issue. Apple&#39;s ld has reported the arch, even when it&#39;s not relevant, for several years now.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>