[CM] s7 with c

James Hearon j_hearon at hotmail.com
Wed May 18 10:18:44 PDT 2016


Hi,

I'm stuck on figuring out compiling a simple s7 repel test in c.  I'm on fedora 23.  I've tried a few different things but not sure what /usr/bin/ld error is trying to tell me.



gcc error:

/usr/bin/ld: cannot find : No such file or directory

//gcc -o repel_test repel_test.c s7.o -Wl, -export-dynamic -lm -I. -ldl

#include "/opt/snd-16/s7.h"

int main (int argc, char **argv)
{
    s7_scheme *sc;
    sc = s7_init();
    s7_load(sc, "/opt/snd-16/repl.scm");
    s7_eval_c_string(sc, "((*repl* 'run))");
    return(0);
}


Regards,

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20160518/1d8e458a/attachment.html>


More information about the Cmdist mailing list