[Mono-list] Error on 'var' when trying to compile mono

Gert Driesen gert.driesen at telenet.be
Sat Jul 18 08:16:49 EDT 2009


Hi Martin,

 

You must be using an older version of mcs.

Nonetheless, I've just committed a revision of Container.cs that avoids
using the 'var' keyword on the 1.0 profile.

 

Gert

 

From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Martin Lundberg
Sent: zaterdag 18 juli 2009 12:15
To: mono-list at lists.ximian.com
Subject: [Mono-list] Error on 'var' when trying to compile mono

 

Hello everyone!

When I try to compile mono (r138174) I get this:

make[7]: Entering directory `/home/marlun/src/mono/mcs/class/System'
make all-local
make[8]: Entering directory `/home/marlun/src/mono/mcs/class/System'
** Warning: System.dll built without parts that depend on: System.Xml.dll
MCS     [basic] System.dll
Microsoft.CSharp/CSharpCodeCompiler.cs(192,32): warning CS0219: The variable
`mcs_stdout' is assigned but its value is never used
System.ComponentModel/Container.cs(176,41): error CS0246: The type or
namespace name `var' could not be found. Are you missing a using directive
or an assembly reference?
Compilation failed: 1 error(s), 1 warnings

What am I doing wrong and how can I fix it?

Thanks,

-Martin

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.13.12/2234 - Release Date: 07/12/09
17:56:00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090718/566b0b97/attachment-0001.html 


More information about the Mono-list mailing list