[Mono-list] mbas compiler

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Thu, 13 Mar 2003 13:06:33 -0300


>Hi, I'm new to mbas and I want to contribute using it.
>Do I need to pass to mbas *.vb files?

Yes, a list of all the ones you want compiled in the same assembly (EXE or 
DLL). In VS.NET you see it as all the sources inside a project inside the 
solution.

>How can I pass all the .vb s files?
Just separated by spaces.

Example:

mbas source1.vb source2.vb source3.vb


>Do I have to specify in the command line the imports or it is automatically 
>done by mbas?

Yes, with the /r option

Example:

mbas /r System source1.vb source2.vb source3.vb

>May I pass a .sln or .vbproj file?

No you can't, but tha are tools to convert them to makefiles

>Why, passing a vb file, mbas answer in this way?

>C:\w>mbas modMain.vb

>syntax error, expecting BINARY CLASS COMPARE CONST DELEGATE DIM END ENUM 
>EVENT E
>XPLICIT FRIEND FUNCTION INTERFACE MODULE OFF PRIVATE PROPERTY PROTECTED 
>PUBLIC S
>HARED STRUCTURE SUB TEXT WITHEVENTS OP_LT IDENTIFIER
>Line:     5 Col: 0
>VirtLine: 5 Token: 308   : Parsing error in modMain.vb
>modMain.vb(5) error BC9999:
>Mono.MonoBASIC.yyParser.yyException: irrecoverable syntax error
>in <0x00cd1> 00 Mono.MonoBASIC.Parser:yyparse 
>(Mono.MonoBASIC.yyParser.yyInput)
>in <0x0023d> 00 Mono.MonoBASIC.Parser:parse ()
>Compilation failed: 1 Error(s), 0 warnings

Either you have an syntax error in your vb code, or you've found a bug in 
mbas. Could you send your source for us to find out what is the case?

>Thankyou very much!

You are welcome! Thank you for helping us test mbas.

>Mono rulez! :D

Happy hackings,

Rafael Teixeira
Brazilian Polymath
Mono, MonoQLE Hacker


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail