[Mono-osx] Compilation error

Geoff Norton gnorton at novell.com
Tue Feb 5 19:51:57 EST 2008


On 5-Feb-08, at 7:38 PM, mandel at themacaque.com wrote:

> cd src && make
> gmcs -nowarn:162 *.cs -target:library -out:../test/objc2-sharp.dll
> Method.cs(24,82): error CS1644: Feature `collection initializers'  
> cannot be used because it is not part of the C# 2.0 language  
> specification
> Object.cs(74,49): error CS1644: Feature `object initializers' cannot  
> be used because it is not part of the C# 2.0 language specification
> Compilation failed: 2 error(s), 0 warnings
> make[1]: *** [all] Error 1
> make: *** [all] Error 2
>
> Does this mean that I have to download and install the source at the  
> svn trunk?
>

Yes.  You need gmcs from trunk; you can try adding -langversion:linq  
to 1.2.6; but I'm not sure if the 1.2.6 compiler was new enough for  
that to work.

-g


More information about the Mono-osx mailing list