Re: Problem using GSourceView
Yoann Padioleau <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
"Angela Zhu" <[email protected]> writes: > On Feb 19, 2008 9:38 AM, Yoann Padioleau <[email protected]> wrote: > > "Angela Zhu" <[email protected]> writes: > > > Hello, > > > > I have lablgtk 2.10.0 installed on my machine. And I want to > > use GSourceView.source_view in my OCaml program. > > > > At the beginning of my file, when I have: > > open Glib > > open GtkEdit > > The file compiles just fine. > > > > But when I add > > open GSourceView, I got "Unbound module GSourceView". > > > > Does anyone have some idea what can be wrong here? > > I have those flags in my Makefile to compile code using GSourceView: > SYSINCLUDES= -I +lablgtk2 -I +lablgtksourceview > SYSLIBS=str.cma unix.cma dbm.cma threads.cma lablgtk.cma > lablgtksourceview.cma > > > Thanks! > > But even after I added these flags, I still got > "Unbound module GSourceView" during compiling. > > Is there anything else I need to do? What is your full command line to compile the file that generates the error ? Something like the following ocamlc -c -I +lablgtk2 -I +lablgtksourceview foo.ml ocamlc -o foo foo.cmo -I +lablgtk2 -I +lablgtksourceview lablgtk.cma lablgtksourceview.cma ? Where is your lablgtk installed ? Do you have a file lablgtksourceview.cma and gSourceView.mli, and gSourceView.cmi in your ocaml libraries (/usr/local/lib/ocaml/... or something similar). > -- > Regards, > Angela Zhu > ------------------------------------------ > Dept. of CS, Rice University > http://www.cs.rice.edu/~yz2/ > ------------------------------------------ > > > > > Even if gtksourceview is now part of lablgtk2, it looks like they > are compiled in different library files (.cma). > > > > > > > > Many thanks in advance! > > -- > > Regards, > > Angela Zhu > > ------------------------------------------ > > Dept. of CS, Rice University > > http://www.cs.rice.edu/~yz2/ > > ------------------------------------------ > > _______________________________________________ > > Lablgtk mailing list > > [email protected] > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk