[Mono-list] Error compiling GTK# Program

Paul Paximadis ppaximadis@websoft.co.za
Thu, 27 Mar 2003 21:58:08 +0200


Thanks - just needed to add "Using System.Drawing"

I get the following warnings when running the exe.

(<unknown>:7192): Gtk-WARNING **: GModule initialization check failed:
Gtk+ version too old (minor mismatch)

** (<unknown>:7192): WARNING **: Failed to load library
libgobject-2.0.so.dll (l
ibgobject-2.0.so): The specified module could not be found.
** (<unknown>:7192): WARNING **: Failed to load library
libgobject-2.0.so.dll (l
ibgobject-2.0.so): The specified module could not be found.
** (<unknown>:7192): WARNING **: Failed to load library
libgtksharpglue.so.dll (
libgtksharpglue.so): The specified module could not be found.
** (<unknown>:7192): WARNING **: Failed to load library
libgtksharpglue.so.dll (
libgtksharpglue.so): The specified module could not be found.

Would getting the latest GTK#/mono from cvs solve that?

Thanks
Paul



-----Original Message-----
From: Daniel Morgan [mailto:danmorg@sc.rr.com]=20
Sent: Thursday, March 27, 2003 21:46
To: Paul Paximadis; mono-list@ximian.com
Subject: RE: [Mono-list] Error compiling GTK# Program

try changing from:

   window1.DefaultSize =3D new Size(200, 150);

to:

   window1.DefaultSize =3D new System.Drawing.Size(200, 150);

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Paul Paximadis
Sent: Thursday, March 27, 2003 2:33 PM
To: mono-list@ximian.com
Subject: [Mono-list] Error compiling GTK# Program


Sorry forgot the attachment

When I try and compile the following program( attached ).
I get the following error

C:\mono-0.23>mcs -r gtk-sharp basic_form.cs
basic_form.cs(36) error CS0246: Cannot find type `Size'
Compilation failed: 1 error(s), 0 warnings

Thanks in advance
Paul