
Hi all. When i run command "c2hs -d trace $(pkg-config --cflags vte | sed 's/-I/-C-I/g') /usr/include/vte/vte.h /test/Download/VteBinding/Vte.chs" i got below error: ------------------------------> error start <------------------------------ Attempting to read file `/test/Download/VteBinding/Vte.chs'... ...parsing `/test/Download/VteBinding/Vte'... ...successfully loaded `/test/Download/VteBinding/Vte'. Invoking cpp as `cpp -x c -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 /test/Download/VteBinding/Vte.chs.h'... Attempting to read file `Vte.i'... ...parsing `Vte.i'... ...name analysis of `Vte.i'... ...error(s) detected in `Vte.i'. c2hs: C header contains errors: <built-in>:1: (column 1) [ERROR] >>> error Lexical error ! The character '#' does not fit here. ------------------------------> error end <------------------------------ And i found same problem at http://hackage.haskell.org/trac/gtk2hs/ticket/1101 It's a bug of c2hs? My locale is: ------------------------------> locale start <------------------------------ LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_PAPER="zh_CN.UTF-8" LC_NAME="zh_CN.UTF-8" LC_ADDRESS="zh_CN.UTF-8" LC_TELEPHONE="zh_CN.UTF-8" LC_MEASUREMENT="zh_CN.UTF-8" LC_IDENTIFICATION="zh_CN.UTF-8" LC_ALL= ------------------------------> locale end <------------------------------ Thanks! -- Andy