Hi, When I try to compile my HS code with some open source C code using C2HS 0.10.14, I encountered this error, c2hs --cppopts='-I/home/luzm/sphinx2-0.4/include/ -pedantic' listener.h Listener.chs c2hs: Generic fatal error. /usr/include/gconv.h:172: (column 3) [FATAL]
Syntax error! The symbol `__extension__' does not fit here.
Can someone tell me when it probably goes wrong? Thanks in advance! Kenny
Kenny,
When I try to compile my HS code with some open source C code using C2HS 0.10.14, I encountered this error,
c2hs --cppopts='-I/home/luzm/sphinx2-0.4/include/ -pedantic' listener.h Listener.chs c2hs: Generic fatal error.
/usr/include/gconv.h:172: (column 3) [FATAL]
Syntax error! The symbol `__extension__' does not fit here.
Can someone tell me when it probably goes wrong?
__extension__ is a GNU C extension keyword, which c2hs didn't recognise at all positions where it can appear. Please try again with version 0.10.15 that you can find on the c2hs web site. Cheers, Manuel
participants (2)
-
Kenny Lu Zhuo Ming -
Manuel M T Chakravarty