[Mono-list] error compiling hello world on windows

Guenther Roith groith@tcrz.net
Sat, 30 Mar 2002 21:46:14 +0100


hello.cs gives the following error when compiled with mcs/mint
It works when it is compiled with mcs/.net:

syntax error, expecting end-of-file EOF ABSTRACT BOOL BYTE CHAR CLASS CONST
DECI
MAL DELEGATE DOUBLE ENUM EVENT EXPLICIT EXTERN FLOAT IMPLICIT INT INTERFACE
INTE
RNAL LONG NAMESPACE NEW OBJECT OVERRIDE PRIVATE PROTECTED PUBLIC READONLY
SBYTE
SEALED SHORT STATIC STRING STRUCT UINT ULONG UNSAFE USHORT VIRTUAL VOID
VOLATILE
 CLOSE_BRACE OPEN_BRACKET SEMICOLON TILDE IDENTIFIER
.\hello.cs (10,1), Token:259 detail:    : Parsing error
Mono.CSharp.yyParser.yyException
irrecoverable syntax errorMono.CSharp.yyParser.yyException#0: 0x0029a throw
 in Mono.CSharp.CSharpParser::yyparse ([00DA48EC] )
#1: 0x0002f call       in Mono.CSharp.CSharpParser::parse ()
#2: 0x00042 callvirt   in Mono.CSharp.Driver::parse ([00D584A8] )
#3: 0x00059 call       in Mono.CSharp.Driver::ProcessFile ([00D584A8] )
#4: 0x00070 call       in Mono.CSharp.Driver::CompileFiles ([00D25D60] [0] )
#5: 0x007b0 call       in Mono.CSharp.Driver::MainDriver ([00D25AF8] )
#6: 0x00001 call       in Mono.CSharp.Driver::Main ([00D25AF8] )

group : 0
error CS5001: Program .\hello.exe does not have an entry point defined