#1101: parse error in c2hs in gobject.i
----------------------------------+-----------------------------------------
Reporter: guest | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: general (Gtk+, Glib) | Version: 0.9.12
Keywords: |
----------------------------------+-----------------------------------------
This problem was originally reported as a reply of #1099 but I think it's
different.
I have the same problem compiling the development version in ubuntu 7.10
32bit with the official binary distribution of ghc 6.8.2, it seems that
the problem is that c2hsLocan can't parse glib-objcet.i, i get the
following message, trying to make the glib bindings:
{{{
./tools/c2hs/c2hsLocal +RTS -RTS -C-I/usr/include/glib-2.0
-C-I/usr/lib/glib-2.0/include --cppopts='-include"gtk2hsconfig.h"'
--precomp=glib/glib.precomp glib-object.h
En el fichero incluído de /usr/include/glib2.0/glib/gthread.h:32,
de /usr/include/glib-2.0/glib/gasyncqueue.h:30,
de /usr/include/glib-2.0/glib.h:32,
de /usr/include/glib2.0/gobject/gtype.h:26,
de /usr/include/glib-2.0/gobject/gboxed.h:26,
de /usr/include/glib-2.0/glib-object.h:25:
/usr/include/glib-2.0/glib/gutils.h:426:1: aviso: se redefinió
"GLIB_CHECK_VERSION" En el fichero incluído de <línea deorden>:1:
./gtk2hs-config.h:179:1: aviso: esta es la ubicación de la definición
previa c2hsLocal: Error in C header file.
<interno>:1: (column 0) [FATAL]
>>> Lexical error! The character '#' does not fit here.
make[2]: *** [glib/glib.precomp] Error 1 make[2]: se sale del directorio
'/home/alberto/tmp/gtk2hs' make[1]: *** glib/System/Glib/Types.hs] Error 2
make[1]: se sale del directorio `/home/alberto/tmp/gtk2hs'}}}
--
Ticket URL: <http://hackage.haskell.org/trac/gtk2hs/ticket/1101>
Gtk2Hs <http://haskell.org/gtk2hs/>
The Gtk2Hs project
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel