[Mono-dev] Compiling db4o-7.12 or 7.13

dedi mdedirudianto at gmail.com
Thu Jan 21 21:35:01 EST 2010


Hi Paul,

I've compiled it using Mono-2.6.1 on Windows and Linux as well.
It works just fine. I'm using db4o-7.12 for .NET 3.5 (db4o-7.4-net35.msi).
But I'm not sure for the .NET 2 version. I will try that.

-dedi

On Fri, Jan 22, 2010 at 12:03 AM, Paul <paul at all-the-johnsons.co.uk> wrote:
> Hi,
>
> Has anyone had any luck compiling db4o-7.12 or 7.13 using Mono-2.6.1?
> I've tried, but keep getting the following error
>
> gmcs -t:library  -warn:0 -out:../bin/Db4objects.Db4o.dll -debug+
> -keyfile:../db4objects.snk -define:NET_2_0,MONO,EMBEDDED  @./sources
> ./Db4objects.Db4o/Internal/Caching/LRU2QLongCache.cs(51,36): error
> CS0453: The type `long?' must be a non-nullable value type in order to
> use it as type parameter `T' in the generic type or method
> `System.Nullable<T>'.
> Compilation failed: 1 error(s), 0 warnings
>
> The offending code is this
>
> public virtual object Produce(object key, IFunction4 producer,
> IProcedure4 finalizer)
>                {
>                        if (((long)key) == null)
>                        {
>                                throw new ArgumentNullException();
>                        }
>
> I'm trying to compile the .NET2 version and don't know if this is a
> Mono, db4o or something else problem.
>
> TTFN
>
> Paul
> --
> Sie können mich aufreizen und wirklich heiß machen!
>


More information about the Mono-devel-list mailing list