[Ecls-list] example of embedding ECL in C/C++ code

Goffioul Michael goffioul at imec.be
Tue Jan 11 00:03:10 UTC 2005


> Greetings,
> 
> Can someone point me to a simple example of how to link a C++ app 
> against the ECL library and call (for example) the "load" function to 
> read and execute a lisp file?

Something like (not tested, but you get the point):

#include <external.h>

int main(int argc, char **argv)
{
	if (cl_boot(argc, argv))
	{
		cl_load(1, make_simple_string("file.lisp"));
		cl_shutdown();
	}
}

Michael




More information about the ecl-devel mailing list