[Mono-list] MBas compiled in VS.NET could not compile simple program

Ondrej Krsko ondrej.krsko@zoznam.sk
Mon, 22 Sep 2003 12:09:48 +0200


Hello,

I downloaded Mono sources from the CVS repository. Then I compiled jay
(/mcs/jay) and
generated mb-parser.cs from mb-parser.jay in /mcs/mbas directory (with
jay.exe).
Then I was able to open mbas in VisualStudio.NET and to compile it.
Compiler mbas.exe is running, but I could not compile simple programs, for
example:

Module1.vb:

Module Module1
    Sub Main()
        Console.Out.WriteLine("Hello World!")
        Console.Out.WriteLine("It works!")
    End Sub
End Module


Here is what appears after running "mbas.exe Module1.vb":

Type: Module1
Type: Object
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.CharArrayType.Fro
mString' could not be found in `Module1'
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.IntegerType.FromS
tring' could not be found in `Module1'
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.IntegerType.FromS
tring' could not be found in `Module1'
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.CharArrayType.Fro
mString' could not be found in `Module1'
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.IntegerType.FromS
tring' could not be found in `Module1'
error BC0103: The name
`Microsoft.VisualBasic.CompilerServices.IntegerType.FromS
tring' could not be found in `Module1'
Module1.vb(4) error BC0246: Could not find attribute
'Microsoft.VisualBasic.Comp
ilerServices.StandardModuleAttribute' (are you missing a using directive or
an a
ssembly reference ?)
Compilation failed: 7 Error(s), 0 warnings

Does anyone know, what these errors mean and how to solve this problem?
I'm trying to find what causes this 6 hours, but I haven't successed yet.

BR,
Ondrej Krsko