[Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, In the recent weeks I have made several changes to how Mono C# compiler is build and works. With the current master version we no longer use and build System.Reflection based C# compilers (gmcs.exe, smcs.exe, dmcs.exe). The new C# compiler (called mcs.exe) is based on IKVM.Reflection

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Robert Jordan
Marek, On 03.02.2011 13:48, Marek Safar wrote: On top of that mcs.exe is now .net 4 application which means you need to install mono including .net 4.0 support to be able to compile any C# program. What's the lowest Mono version that can be used to bootstrap the current git version? Robert

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, install mono including .net 4.0 support to be able to compile any C# program. What's the lowest Mono version that can be used to bootstrap the current git version? I have not really tested it but Mono 2.4 or newer should work. Marek ___

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Miguel de Icaza
Hello Marek, A new compiler option has been introduced called sdk with 2 values at the moment (2, 4). It allows to build against predefined framework version without manually specifying mscorlib location when compiling directly using mcs compiler. The default value is 4. Although I mentioned

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Rodrigo B. de Oliveira
On Thu, Feb 3, 2011 at 2:06 PM, Miguel de Icaza mig...@novell.com wrote: ... Is it possible to instead of using a set of preconfigured numbers for the SDK, that we could provide a string, so that: -sdk:STRING Makes mcs look in $prefix/lib/mono/STRING That way we do not hardcode the

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Rafael Teixeira
I think both ways should be supported. If it starts with a number and is a valid constant, use it. (easier for people building interactively in the command line), but for any other pattern try to just concat as suggested (easier for makefiles and to support custom frameworks) Just my two cents,

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, I think both ways should be supported. If it starts with a number and is a valid constant, use it. (easier for people building interactively in the command line), but for any other pattern try to just concat as suggested (easier for makefiles and to support custom frameworks) Yes,

[Mono-dev] Symlinks not created

2011-02-03 Thread David Vigier
Hello, I'm new to Mono. I've tried to install it on OpenEmbedded/Angstrom using opkg mono but I got 4 warnings about symbolic links not created: * extract_archive: Cannot create symlink from

[Mono-dev] Marshal.SizeOf differences on .NET and Mono

2011-02-03 Thread Joe Dluzen
Hi all, I'm not entirely sure who has the bug here, Mono seems like it is more logically correct, but perhaps I'm missing an attribute somewhere. Marshal.SizeOf(typeof(ImClasses)) is not what you'd expect, and is different depending on if it runs under Mono 2.8 (on Windows) or .NET 3.5. .NET: