Compile Error Mono

CamilleMoon

New Member
Aug 14, 2016
2
3
47
Hello, I was just wondering if anyone else has got this problem with compiling using ubuntu 18.04 lts? It happened recently not sure if i did something wrong, this is what im getting:

Error:
sudo make
mcs -target:library -out:`pwd`/Ultima.dll -r:System.Drawing.dll -nowarn:0618,0219,0414,1635 -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Ultima/*.cs
mcs -win32icon:`pwd`/Server/servuo.ico -r:`pwd`/Ultima.dll,System.Drawing.dll -nowarn:0618,0219,0414,1635 -target:exe -out:`pwd`/ServUO.exe -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Server/*.cs
/home/ServUO/Server/ScriptCompiler.cs(816,32): error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
/home/ServUO/Server/ScriptCompiler.cs(817,32): error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
/home/ServUO/Server/ScriptCompiler.cs(872,42): error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
/home/ServUO/Server/ScriptCompiler.cs(885,53): error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
Compilation failed: 4 error(s), 0 warnings
Makefile:35: recipe for target 'ServUO.exe' failed
make: *** [ServUO.exe] Error 1
 

CamilleMoon

New Member
Aug 14, 2016
2
3
47
Never mind I found a solution. For anyone else who has this problem all i did was add -langversion:experimental into the mcs compiler.

example:
mcs -langversion:experimental -target:library -out:`pwd`/Ultima.dll -r:System.Drawing.dll -nowarn:0618,0219,0414,1635 -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Ultima/*.c
 

BirdWatcher

Member
May 19, 2018
10
1
28
Please help me, the problem isnt resolved, after this another error occurred when ServUO.sh start,

ServUO - [https://www.servuo.com] Version 0.5, Build 7154.3726 - Build on 08/03/2019 02:04:12 UTC - Release
Core: Running with arguments: -noconsole
Core: Optimizing for 3 64-bit processors
Core: Unix environment detected
Core: Compiled for MONO and running on 4.6.2 (Debian 4.6.2.7+dfsg-1)
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Multis/Boats/BaseBoat.cs:
CS1644: Line 50: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 455: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 1908: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2100: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2269: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2515: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2709: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2733: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 2735: Feature `type pattern matching' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 3284: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification
CS1644: Line 3284: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification

Scripts: One or more scripts failed to compile or no script files were found.