[Gtk-sharp-list] Newbie: Compiling

Guenther Roith groith@tcrz.net
Mon, 11 Nov 2002 15:56:51 +0100


You have to refernce the each gtk# assembly you're using like that:

mcs imageBrowser.cs /r:c:/mono-0.16/install/lib/gtk-sharp.dll /r:c:/mono-0.

if your using pango-sharp, for example, you must add


----- Original Message -----
From: "Simphoukham, Southin" <Southin.Simphoukham@westgroup.com>
To: <gtk-sharp-list@ximian.com>
Sent: Monday, November 11, 2002 3:31 PM
Subject: [Gtk-sharp-list] Newbie: Compiling

> Hi:
> I have download the mono packages and was able to compile and run a very
> simple "hello world" program.  I also downloaded the gtk-sharp-0.5
> When I try to compile a cs file that uses gtk-sharp I get the following
> error:
> C:\Applications\ImageBrowser>mcs imageBrowser.cs
> You can run mcs with 'monomcs' on .NET, instead of mono, too.
> imageBrowser.cs(99) error CS0246: Cannot find type `Gtk.Frame'
> imageBrowser.cs(121) error CS0246: Cannot find type `Gtk.VBox'
> imageBrowser.cs(46) error CS0246: Cannot find type `Gtk.Table'
> Compilation failed: 3 error(s), 0 warnings
> How can I compile the program and reference the libraries?  I assume that
> all the gtk-sharp libraries are in the folder.
> In java when you want to run a program reference a jar (library) you would
> use:
> java -cp me.jar;you.jar helloworld ....
> Thank you,
> Southin
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list