[Ecls-list] About Embed ECL into C programs

Huang Jianshi hadeshuang at gmail.com
Sun Nov 19 02:28:52 UTC 2006


Hi, I want to know how to embed ECL into my C program. I followed the
manual, included <ecl.h>, wrapped necessary value into cl_object when
passing to lisp functions. But I could compile my program. Here's the
error information:

gcc -I"/usr/local/lib/ecl/" lisp_interface.c

In file included from lisp_interface.c:2:
lisp/player.c: In function 'L1change_cards_entry':
lisp/player.c:3: error: 'VT2' undeclared (first use in this function)
lisp/player.c:3: error: (Each undeclared identifier is reported only once
lisp/player.c:3: error: for each function it appears in.)
lisp/player.c:3: error: parse error before 'VLEX2'
lisp/player.c:23: error: 'T0' undeclared (first use in this function)
lisp/player.c:40: error: 'value0' undeclared (first use in this function)
lisp/player.c: In function 'L2play_cards_entry':
lisp/player.c:48: error: 'VT3' undeclared (first use in this function)
lisp/player.c:48: error: parse error before 'VLEX3'
lisp/player.c:68: error: 'T0' undeclared (first use in this function)
lisp/player.c:85: error: 'value0' undeclared (first use in this function)
In file included from lisp_interface.c:2:
lisp/player.c:92:77: error: /Users/xxx/tmp/client/lisp/player.data: No
such file or directory
lisp/player.c: In function 'init_CODE':
lisp/player.c:97: error: 'VT1' undeclared (first use in this function)
lisp/player.c:97: error: parse error before 'CLSR1'
lisp/player.c:101: error: 'Cblock' undeclared (first use in this function)
lisp/player.c:105: error: 'VM' undeclared (first use in this function)
lisp/player.c:106: error: 'VMtemp' undeclared (first use in this function)
lisp/player.c:107: error: 'compiler_data_text' undeclared (first use
in this function)
lisp/player.c:108: error: 'compiler_data_text_size' undeclared (first
use in this function)
lisp/player.c:111: error: 'VV' undeclared (first use in this function)


What's the problem?




More information about the ecl-devel mailing list