[Ecls-list] Getting "hello world" going
Mark Carter
mcturra2000 at yahoo.co.uk
Fri Aug 24 09:50:00 UTC 2007
I know I'm being a bit vague here, but it's not really happening for me. . Suppose, instead, I have hello.c:
#include <ecl/ecl.h>
main()
{
cl_object form, result;
form = c_string_to_object("(+ 1 2)");
result = si_safe_eval(4,form, Cnil, OBJNULL );
}
and I compile it using
gcc -lecl hello.c
When I type
./a.out
I get
Segmentation Fault
----- Original Message ----
From: Mark Carter <mcturra2000 at yahoo.co.uk>
To: ecls-list at lists.sourceforge.net
Sent: Friday, 24 August, 2007 12:07:18 AM
Subject: [Ecls-list] Getting "hello world" going
I am trying to call Lisp code from C.
Suppose I have the Lisp file sayhello.lisp:
(defun say-hello ()
(print "hello world"))
and a C file hello.c:
main()
{
say_hello(); /* ?? */
}
How do I compile everything into a program so that it all works?
Yahoo! Answers - Get better answers from someone who knows. Try
it now.
___________________________________________________________
Check out the All New Yahoo! Mail blog http://ymailuk.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20070824/91ba2517/attachment.html>
More information about the ecl-devel
mailing list