<div dir="ltr"><div>Hi Brad,</div><div><br></div><div>Here are the steps to reproduce the error I am getting.</div>This is the structure of the sample project folder:<div><br></div><div>myapp</div><div>--> core</div><div>----> a.scm</div><div>----> b.scm</div><div>--> myapp.scm</div><div><br></div><div>The contents of the scheme files are:</div><div><br></div><div>````</div><div>;; core/a.scm</div><div><div>(define (fa)</div><div>  "hello from a")</div></div><div><br></div><div><div>;; core/b.scm</div><div><div>(define (fb)</div><div>  "hello from b")</div></div></div><div><br></div><div>;; myapp.scm</div><div><div>(display (fa))</div><div>(newline)</div><div>(display (fb))</div><div>(newline)</div></div><div>````</div><div><br></div><div>I build an executable like this:</div><div><br></div><div>````</div><div>$ gsc -o myapp -exe ./core/*.scm myapp.scm<br></div><div><div>$ ./myapp <br></div><div><br></div></div><div><div>=> hello from a</div><div>=> hello from b</div></div><div>````</div><div><br></div><div>All is fine. Now I try to bundle core as a static library:</div><div><br></div><div>````</div><div><div>$ gsc -c -o ./core/b.c ./core/b.scm</div></div><div>$ gsc -c -o ./core/a.c ./core/a.scm</div><div>$ gsc -link -flat -o ./core/ab.c ./core/*.c</div><div>$ gsc -obj -o ./core/ab.o ./core/ab.c</div><div>$ ar -rc ab.a ./core/ab.o </div><div>````</div><div><br></div><div>I link the library while building the app:</div><div><br></div><div>````</div><div><div>$ gsc -o myapp -ld-options "ab.a" -exe myapp.scm<br></div><div>*** WARNING -- "fa" is not defined,</div><div>***            referenced in: ("/Users/me/myapp/app.c")</div><div>*** WARNING -- "fb" is not defined,</div><div>***            referenced in: ("/Users/me/myapp/app.c")</div></div><div>````</div><div><br></div><div>Now if I run `./myapp` it gives me this error:</div><div><br></div><div>````</div><div><div>$ ./myapp <br></div><div>*** ERROR IN | app| -- Operator is not a PROCEDURE</div><div>(#!unbound)</div></div><div>````</div><div><br></div><div>So what am I doing wrong?</div><div><br></div><div>Thanks,</div><div><br></div><div>--Vijay</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 8, 2016 at 1:00 AM, Bradley Lucier <span dir="ltr"><<a href="mailto:lucier@math.purdue.edu" target="_blank">lucier@math.purdue.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Personally, I don't have enough information yet to offer help.<br>
<br>
Perhaps you could show us a transcript of your session with the commands you gave and the errors you observed.<br>
<br>
Or perhaps you could try to imitate the commands in the makefiles in lib/ gsi/ and gsc/ to make<br>
<br>
find . -name '*.a'<br>
./gsi/libgambitgsi.a<br>
./gsc/libgambitgsc.a<br>
./lib/libgambit.a<br>
<br>
after following the build instructions on github:<br>
<br>
<a href="https://github.com/feeley/gambit" rel="noreferrer" target="_blank">https://github.com/feeley/gambit</a><br>
<br>
Brad<br>
</blockquote></div><br></div>