Re: [Banshee-List] Mirage 0.2 compile error



On Fri, 2007-10-05 at 15:56 -0400, Jason Trickett wrote:
> I got this error when compiling Mirage 0.2:
> 
> Main.cs(49,13): error CS1501: No overload for method `Timer' takes `0'
> arguments
> Main.cs(50,5): error CS0117: `Timer' does not contain a definition for
> `Start'
> Main.cs(55,14): error CS0117: `Timer' does not contain a definition
> for `Stop'
> Compilation failed: 3 error(s), 0 warnings
> make[1]: *** [Test.exe] Error 1
> make[1]: Leaving directory `/home/jason/work/mirage/Test'
> make: *** [all-recursive] Error 1
> 
> I'm on Ubuntu Feisty with the lastest Banshee (svn). Any ideas?
> Thanks. 

Hi,

It seems that on your system, for whatever reason, the reference to the
Timer class gets resolved to "System.Threading.Timer", instead of
"Mirage.Timer". Compilation works fine for me.

Anyway, this patch should fix it.

-- 
Bertrand Lorentz <bertrand lorentz gmail com>
> http://flickr.com/photos/bl8/ <
Index: Test/Main.cs
===================================================================
--- Test/Main.cs	(revision 27)
+++ Test/Main.cs	(working copy)
@@ -46,7 +46,7 @@
 		
 		Console.WriteLine("Distance = " + song1.Distance(song2));
 		
-		Timer t = new Timer();
+		Mirage.Timer t = new Mirage.Timer();
 		t.Start();
 		int runs = 100000;
 		for (int i = 0; i < runs; i++) {

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]