nbfc icon indicating copy to clipboard operation
nbfc copied to clipboard

Error trying to build

Open glats opened this issue 9 years ago • 4 comments

I have this errors:

ConfigManager.cs(72,19): error CS1525: Unexpected symbol 'throw'
ConfigManager.cs(74,19): error CS1525: Unexpected symbol 'throw'
ConfigManager.cs(76,19): error CS1525: Unexpected symbol 'throw'

I have mono 4.6.2

Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

glats avatar Jun 13 '17 01:06 glats

+1

brunocechet avatar Jun 13 '17 13:06 brunocechet

The mono compiler version on your system doesn't support the null-coalescing operator in combination with a throw statement. This could be solved by upgrading your mono version.

But since many distros have slightly outdated versions of mono in their repos, I've decided to fix this problem, see: 3b1721f5d862baa4f6521d45e423098cfef2e577

hirschmann avatar Jun 13 '17 13:06 hirschmann

I've update the project and try to build again. The error now is another:

CSC: error CS0518: The predefined type System.Object' is not defined or imported CSC: error CS0518: The predefined type System.ValueType' is not defined or imported CSC: error CS0518: The predefined type System.Attribute' is not defined or imported CSC: error CS0518: The predefined type System.Int32' is not defined or imported CSC: error CS0518: The predefined type System.UInt32' is not defined or imported CSC: error CS0518: The predefined type System.Int64' is not defined or imported CSC: error CS0518: The predefined type System.UInt64' is not defined or imported CSC: error CS0518: The predefined type System.Single' is not defined or imported CSC: error CS0518: The predefined type System.Double' is not defined or imported CSC: error CS0518: The predefined type System.Char' is not defined or imported CSC: error CS0518: The predefined type System.Int16' is not defined or imported CSC: error CS0518: The predefined type System.Decimal' is not defined or imported CSC: error CS0518: The predefined type System.Boolean' is not defined or imported CSC: error CS0518: The predefined type System.SByte' is not defined or imported CSC: error CS0518: The predefined type System.Byte' is not defined or imported CSC: error CS0518: The predefined type System.UInt16' is not defined or imported CSC: error CS0518: The predefined type System.String' is not defined or imported CSC: error CS0518: The predefined type System.Enum' is not defined or imported CSC: error CS0518: The predefined type System.Delegate' is not defined or imported CSC: error CS0518: The predefined type System.MulticastDelegate' is not defined or imported CSC: error CS0518: The predefined type System.Void' is not defined or imported CSC: error CS0518: The predefined type System.Array' is not defined or imported CSC: error CS0518: The predefined type System.Type' is not defined or imported CSC: error CS0518: The predefined type System.Collections.IEnumerator' is not defined or imported CSC: error CS0518: The predefined type System.Collections.IEnumerable' is not defined or imported CSC: error CS0518: The predefined type System.IDisposable' is not defined or imported CSC: error CS0518: The predefined type System.IntPtr' is not defined or imported CSC: error CS0518: The predefined type System.UIntPtr' is not defined or imported CSC: error CS0518: The predefined type System.RuntimeFieldHandle' is not defined or imported CSC: error CS0518: The predefined type System.RuntimeTypeHandle' is not defined or imported CSC: error CS0518: The predefined type `System.Exception' is not defined or imported

I'm using linux 64bit with mono-complete package

brunocechet avatar Jun 13 '17 13:06 brunocechet

Solved by updating mono-complete package: http://www.mono-project.com/download/

brunocechet avatar Jun 13 '17 14:06 brunocechet