Delivered-To: lablgtk at yquem.inria.fr To: "Angela Zhu" Subject: Re: [Lablgtk] Problem using GSourceView References: <87skzp5535.fsf@wanadoo.fr> From: Yoann Padioleau Date: Tue, 19 Feb 2008 10:34:13 -0600 In-Reply-To: (Angela Zhu's message of "Tue, 19 Feb 2008 10:01:17 -0600") Message-ID: <87odac6h2y.fsf at wanadoo.fr> MIME-Version: 1.0 Cc: lablgtk at yquem.inria.fr Content-Type: text/plain; charset=us-ascii Content-Length: 2377 "Angela Zhu" writes: > On Feb 19, 2008 9:38 AM, Yoann Padioleau wrote: > > "Angela Zhu" 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 > > Lablgtk@yquem.inria.fr > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk