<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 19, 2016 at 7:57 PM, James Hearon <span dir="ltr">&lt;<a href="mailto:j_hearon@hotmail.com" target="_blank">j_hearon@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;background-color:rgb(255,255,255)">
<p>Hi,</p>
<p>I was trying to get back to looking at s7 as interpreter but I&#39;m failing to compile for some reason.</p>
<p><br>
</p>
<p>I have s7.o, s7.h, and snd is working ok.  But I&#39;m getting undefined ref errors trying to compile below and a little stumped what might be going wrong?  Seems like it&#39;s not finding something it needs.</p>
<p><br>
</p>
<p></p>
<div>//gcc -o repel_test repel_test.c s7.o  -Wl,-export-dynamic -lm -I. -ldl<br>
#include &quot;/opt/snd-16/s7.h&quot;<br>
int main (int argc, char **argv)<br>
{<br>
    s7_scheme *sc;<br>
    sc = s7_init();<br>
    s7_load(sc, &quot;/opt/snd-16/repl.scm&quot;);<br>
    s7_eval_c_string(sc, &quot;((*repl* &#39;run))&quot;);<br>
    return(0);<br>
}<br>
<br>
-----------------<br>
<br>
<div>/opt/snd-16/s7.o: In function `sweep&#39;:<br>
s7.c:(.text+0x1b40): undefined reference to `__gmpz_clear&#39;<br></div></div></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>It seems like you compile s7 with &quot;WITH_GMP&quot; defined somehow.</div><div>Perhaps you have a mus-config.h file where WITH_GMP is defined?</div><div><br></div><div>I guess it compiles if you remove WITH_GMP from mus-config.h,</div><div> or link in libgmp: -lgmp</div><div><br></div></div></div></div>