Error on 'var' when trying to compile mono

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error on 'var' when trying to compile mono

Marlun
Administrator
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

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error on 'var' when trying to compile mono

drieseng

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: [hidden email] [mailto:[hidden email]] On Behalf Of Martin Lundberg
Sent: zaterdag 18 juli 2009 12:15
To: [hidden email]
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


_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Loading...