Re: Beagle 0.0.10 doesn't compile with Mono 1.0.6
- From: Todd Berman <tberman off net>
- To: Joe Shaw <joeshaw novell com>
- Cc: dashboard-hackers gnome org
- Subject: Re: Beagle 0.0.10 doesn't compile with Mono 1.0.6
- Date: Sat, 04 Jun 2005 16:14:49 -0700
On Sat, 2005-06-04 at 11:59 -0400, Joe Shaw wrote:
> On Sat, 2005-06-04 at 16:35 +0100, Daniel Drake wrote:
> > When compiling with mono 1.0.6, you get these errors:
> >
> > /Query.cs(70) error CS1501: No overload for method
> > `RegisterAsyncResponseHandler' takes `2' arguments
> > /Query.cs(70) error CS8006: Could not find any applicable function for this
> > argument list
> >
> > Delegate handling in Mono 1.0.6 seems to be totally broken. See
> > http://bugzilla.ximian.com/show_bug.cgi?id=75155
> >
> > Does this sound like a good time to set 1.1.x as a minimum requirement?
>
> The error message is wrong, but the behavior isn't. The ability to wrap
> a function as a delegate is a C# 2.0 feature, and mono 1.0.x doesn't
> implement it.
>
> In your test case, you have:
>
> Temp (SomeFunc);
>
> but SomeFunc isn't a MyDelegate, it's a method. To fix this, you'd do:
>
> Temp (new MyDelegate (SomeFunc));
>
> The automatic wrapping is just a nice feature (and might be required for
> delegate covariance).
>
> That said, it's probably still a good idea to bump up the requirement to
> 1.1.x. At this point I think all the major distros are either shipping
> 1.1.x or packages for them are available from mono-project.org. And the
> 1.0.x branch has been discontinued by the developers.
>
One thing to keep in mind, as I am not sure of the status of the win32
port of beagle anymore, but if you want beagle to build on win32 w/
the .NET framework 1.1, instead of requiring 2.0, you will have to fix
this anyway.
So far, the best way to force this to be fixed is to include
-langversion:ISO-1 in the mcs compile line. This will error out on the
above issues, and enforce in the future ISO-1 (meaning .net 1.1)
compliance.
That said, I am not sure how important beagle building on win32 is to
you guys currently :)
--Todd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]