[Mono-list] Compiling (mbas) with multiple references
25 Mar 2003 20:12:32 -0500
You need to use "-r" with each assembly:
mbas win32.vb -r:System.Drawing -r:gtk-sharp
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
> win = new Window("VB Gtk + Hello
> win.DefaultSize = new Size (200,150)
> btn = new Button("Click me!")
> 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!
> Mono-list maillist - Monoemail@example.com