[Mono-list] Error compiling GTK# Program

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


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2F497.B8534860
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C2F497.B8534860"


------_=_NextPart_002_01C2F497.B8534860
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Sorry forgot the attachment

=20

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

I get the following error=20

=20

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

=20

Thanks in advance

Paul

=20


------_=_NextPart_002_01C2F497.B8534860
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Sorry forgot the attachment</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I try and compile the following program( =
attached ).</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I get the following error </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>C:\mono-0.23&gt;mcs -r gtk-sharp =
basic_form.cs</span></font></p>

<p class=3DMsoNormal><b><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>basic_form.cs(36) error CS0246: =
Cannot find
type `Size'</span></font></b></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Compilation failed: 1 error(s), 0 =
warnings</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks in advance</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Paul</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

</div>

</body>

</html>
=00
------_=_NextPart_002_01C2F497.B8534860--

------_=_NextPart_001_01C2F497.B8534860
Content-Type: application/octet-stream;
	name="basic_form.cs"
Content-Transfer-Encoding: base64
Content-Description: basic_form.cs
Content-Disposition: attachment;
	filename="basic_form.cs"

Ly8gYSBzaW1wbGUgZm9ybSB0aGF0IHNldHMgdXAgYSBsYWJlbCwgdGV4dCBlbnRyeSBmaWVsZA0K
Ly8gYW5kIHR3byBidXR0b25zIA0KLy8gY29tcGlsZSB3aXRoIG1jcyAtciBndGstc2hhcnAgYmFz
aWNfZm9ybS5jcw0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