[Ecls-list] build-shared-library and export functions
_ _
swarogich at bk.ru
Sat Sep 8 22:17:37 UTC 2007
>From: Juan Jose Garcia-Ripoll <jjgarcia at us...> - 2007-09-08 09:07
>You probably forgot to initialize the lisp environment using cl_boot().
>
>2007/9/7, _ _ <swarogich at bk.ru>:
>> Thank you, now I can build my shared library with Lisp compiled functions in its place. But still, how do I use it? If I just dlsym test_get_msg_text, it >seems to be located correctly (non-NULL pointer), but when I call it, I get segmentation fault.
Ok, now I call cl_boot before everything else:
cl_object result;
cl_boot(argc,argv);
result=test_get_msg_text(0); //Declared as cl_object test_get_msg_text(cl_narg, ...);
And I'm getting Segmentation violation.
More information about the ecl-devel
mailing list