[Ecls-list] features.h is harmful
Gabriel Dos Reis
gdr at cs.tamu.edu
Sat Aug 21 20:02:27 UTC 2010
Hi Juanjo,
The new header file src/c/features.h appears to break builds on Linux.
Indeed, on many linux distributions there already exists a header file
named feature.h. In the ECL case, it looks like <stdlib.h> is picking
the new (ECL) file as opposed of the (linux) system supplied header.
This is on openSUSE-11.2. The exact error is:
In file included from /usr/include/stdlib.h:25,
from /home/gdr/src/ecl.cvs/src/c/dpp.c:71:
/home/gdr/src/ecl.cvs/src/c/features.h:18: error: expected ‘)’ before ‘static’
In file included from /home/gdr/src/ecl.cvs/src/c/dpp.c:71:
/usr/include/stdlib.h:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__BEGIN_NAMESPACE_STD’
/usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
/usr/include/stdlib.h:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
I would suggest to rename features.h as ecl-features.h.
-- Gaby
More information about the ecl-devel
mailing list