[Mono-list] Sample compilation problem

Iñigo Illán iillan@terra.es
25 Jan 2003 11:39:14 +0100


--=-MddGI0mSyyPA9IuCTsE1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Try putting:

using GtkSharp;


On Fri, 2003-01-24 at 07:39, Stelian Iancu wrote:

    Hi!
    
    I just build the helloworld example using Gtk#. If I compile it via
    comand line, with 
    mcs hw.cs -r gtk-sharp.dll
    everything is fine and the program gets compiled. However, when I use
    NAnt for compiling, I get an error that it can't find the type
    DeleteEventArgs. Here is the hw.build file I am using:
    
    <?xml version="1.0" encoding="iso-8859-1"?>
    
    <project name="hw" default="build">
    	<property name="debug" value="true"/>
    	
    	<target name="build">
    		<mcs target="exe" output="hw.exe" debug="${debug}">
    			<sources basedir="src">
    				<includes name="hw.cs"/>
    			</sources>
    			<references>
    				<includes name="gtk-sharp.dll"/>
    			</references>
    		</mcs>
    	</target>
    	
    	<target name="clean">
    		<delete file="hw.exe" failonerror="false"/>
    	</target>
    </project>
    
    I thought that the <reference> tag is similar with the -r option of
    mcs.I also tried by putting /usr/local/lib/gtk-sharp.dll, but it was the
    same thing. Also, I am using NAnt that comes with mcs 0.19. 
    
    Please help me out!
    
    Thanks!
    
    -- 
    Regards,
    Stelian I.
    
    _______________________________________________
    Mono-list maillist  -  Mono-list@lists.ximian.com

http://lists.ximian.com/mailman/listinfo/mono-list
P.D.: Magic is real......... unless declared integer. 
P.D.D.: Para entender lo que es la recursividad, primero hay que
entender lo que es la recursividad.

--=-MddGI0mSyyPA9IuCTsE1
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Try putting:
<BR>

<BR>
using GtkSharp;
<BR>

<BR>

<BR>
On Fri, 2003-01-24 at 07:39, Stelian Iancu wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>Hi!</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>I just build the helloworld example using Gtk#. If I compile it via</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>comand line, with </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>mcs hw.cs -r gtk-sharp.dll</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>everything is fine and the program gets compiled. However, when I use</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>NAnt for compiling, I get an error that it can't find the type</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>DeleteEventArgs. Here is the hw.build file I am using:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&lt;project name=&quot;hw&quot; default=&quot;build&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	&lt;property name=&quot;debug&quot; value=&quot;true&quot;/&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	&lt;target name=&quot;build&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>		&lt;mcs target=&quot;exe&quot; output=&quot;hw.exe&quot; debug=&quot;${debug}&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>			&lt;sources basedir=&quot;src&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>				&lt;includes name=&quot;hw.cs&quot;/&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>			&lt;/sources&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>			&lt;references&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>				&lt;includes name=&quot;gtk-sharp.dll&quot;/&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>			&lt;/references&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>		&lt;/mcs&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	&lt;/target&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	&lt;target name=&quot;clean&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>		&lt;delete file=&quot;hw.exe&quot; failonerror=&quot;false&quot;/&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>	&lt;/target&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&lt;/project&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>I thought that the &lt;reference&gt; tag is similar with the -r option of</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>mcs.I also tried by putting /usr/local/lib/gtk-sharp.dll, but it was the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>same thing. Also, I am using NAnt that comes with mcs 0.19. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Please help me out!</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Thanks!</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Regards,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Stelian I.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Mono-list maillist  -  Mono-list@lists.ximian.com</FONT></FONT></I></PRE>
    </BLOCKQUOTE>
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-list"><FONT SIZE="3"><I>http://lists.ximian.com/mailman/listinfo/mono-list</FONT></I></A>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
P.D.: Magic is real......... unless declared integer. 
<BR>
P.D.D.: Para entender lo que es la recursividad, primero hay que entender lo que es la recursividad.
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-MddGI0mSyyPA9IuCTsE1--