[Mono-list] Compiling (mbas) with multiple references

Jonathan Pryor jonpryor@vt.edu
25 Mar 2003 20:12:32 -0500


You need to use "-r" with each assembly:

	mbas win32.vb -r:System.Drawing -r:gtk-sharp

 - Jon

On Tue, 2003-03-25 at 16:20, Robert Fab wrote:
> Hello everybody,
> 
> I'm newbie here. I started using mono over RedHat 8.0
> and the VB compiler. My problem is that I don't know
> how to compile a little program using multiple
> references. My code:
> 
> Imports GLib
> Imports Gtk
> Imports GtkSharp
> Imports System
> Imports System.Drawing
> 
> Module GtkTest
>         Sub Main()
>                 Dim win as Window
>                 Dim btn as Button
> 
>                 Application.Init()
>                 win = new Window("VB Gtk + Hello
> World")
>                 win.DefaultSize = new Size (200,150)
>                 btn = new Button("Click me!")
>                 win.Add(btn)
>                 win.ShowAll()
>                 Application.Run()
>         End Sub
> End Module
> 
> 
> When I compile, I need to reference at least (I guess
> so) two libraries: "gtk-sharp" and "System.Drawing".
> But -r option does not accept multiple libraries:
> 
> mbas win2.vb -r System.Drawing, gtk-sharp
> 
> I get an error.
> 
> Can anybody help me?
> Thanks in advance!
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list