[Ecls-list] Re: Bunch of fixes
Paul F. Dietz
dietz at dls.net
Mon Mar 17 16:52:07 UTC 2003
Juan Jose Garcia Ripoll wrote:
> This is very strange. I have just checked out a fresh new copy from CVS and
> nothing bad happens :-/ How are you configuring ECL? What platform are you
> using? If you check out a new copy and does not work, can you send me the
> file which produces the error (list.c in this case -- just do a "make list.c"
> from build/c/)? Also dpp.c and list.d would be nice, just to make sure
> everything is ok.
I'm getting the same problem, after ./configure --prefix=/home/dietz.
This is on Red Hat Linux 7.3, with gcc 2.96.
The errors appear to be of the kind illustrated by this fragment
(of list.c):
#line 553
cl_object cl_subst(int narg, cl_object new_obj, cl_object old_obj, cl_object tree, ...)
{
#line 553
saveTEST;
#line 556
static cl_object KEYS[3] = {(cl_object)(cl_symbols+1162), (cl_object)(cl_symbols+1163),
(cl_object)(cl_symbols+1129)};
cl_object test;
cl_object test_not;
cl_object key;
This gave the errors:
/home/dietz/ecls/src/c/list.d: In function `cl_subst':
/home/dietz/ecls/src/c/list.d:556: parse error before `static'
/home/dietz/ecls/src/c/list.d:557: `ARGS' undeclared (first use in this function)
/home/dietz/ecls/src/c/list.d:557: (Each undeclared identifier is reported only once
/home/dietz/ecls/src/c/list.d:557: for each function it appears in.)
/home/dietz/ecls/src/c/list.d:556: `KEYS' undeclared (first use in this function)
/home/dietz/ecls/src/c/list.d:556: `KEY_VARS' undeclared (first use in this function)
/home/dietz/ecls/src/c/list.d:556: `test' undeclared (first use in this function)
/home/dietz/ecls/src/c/list.d:556: `test_not' undeclared (first use in this function)
/home/dietz/ecls/src/c/list.d:556: `key' undeclared (first use in this function)
It looks like you're trying to put a local variable declaration after
a statement, which is illegal in C (but not in C++).
Paul
More information about the ecl-devel
mailing list