Oooops,

Looks it's another stupid mistake,

I have add `gio`  for `libHSgtk_a_INTERNALDEPS` in Makefile.am

And i forgot add gio dependency in `gtk.cabal.in` and `gtk.package.conf.in`

Now problem fix.

Thanks all for help!

  -- Andy

Andy Stewart <lazycat.mana...@gmail.com> writes:

> Hi all,
>
> Some Gtk+ functions need GIcon in GIO (gio/System/GIO/Types.chs)
>
> And i found in Makefile.am just have `gtk` in `libHSgtk_a_INTERNALDEPS`
> So i add `gio` in it:
>    libHSgtk_a_INTERNALDEPS            = glib gio
>
> And `make` new code is okay, but when i run `ghci -package gtk`, i got
> below error:
>
> GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Loading package mtl-1.1.0.2 ... linking ... done.
> Loading package glib-0.10.1 ... linking ... done.
> Loading package bytestring-0.9.1.5 ... linking ... done.
> Loading package array-0.3.0.0 ... linking ... done.
> Loading package cairo-0.10.1 ... linking ... done.
> Loading package containers-0.3.0.0 ... linking ... done.
> ghc: /usr/local/lib/gtk2hs/HSgtk.o: unknown symbol
> giozm0zi10zi1_SystemziGIOziTypes_zdfGObjectClassIcon_closure'
> Loading package gtk-0.10.1 ... linking ... ghc: unable to load package 
> `gtk-0.10.1'
>
> I'm sure i have add all _stub.o files in Makefile.am
> And above error looks like something wrong when link HSgtk.o ....
> Just add `gio` in `libHSgtk_a_INTERNALDEPS` is not enough?
>
> Any idea?
>
> Thanks
>
>   -- Andy
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to