[mono-vb] New to mono basic (vbnc) need help compiling source.

Aristotle obrigman at nc.rr.com
Mon Nov 17 19:51:47 EST 2008




Rolf Bjarne Kvinge-2 wrote:
> 
> Hi,
> 
>> http://www.nabble.com/file/p20525397/Voyager1.vb Voyager1.vb
>> 
>> How do I compile this with vbnc!!!
>> I've been to the Mono and MSDN sites for compiling vb.net source code
>> where it says: vbnc(vbc) [options], (Program)
>> The Mono Book I have writes
>> "vbnc /r:$MONODIR/Path/To/Mono/Libs"
>> Which works if you only need to include one lib , but how do I tell it
>> also use another Simply Put, when I compile
>> vbnc /r$MONODIR/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll
> /r:$MONODIR/usr/lib/mono/gecko-sharp-2.0/gecko-sharp.dll Voyager1.vb
>> It will find the Gtk-sharp libs, but not the Gecko-sharp ones, then if I
>> reverse it and put the Gecko Libs first, it finds them but loses the Gtk
> Libs.
> 
> You should be able to put multiple /r: arguments, if not it's a bug in the
> compiler.
> 
> In any case you can separate dlls with commas:
> 
> vbnc
> /r:$MONODIR/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll,$MONODIR/usr/lib/mono/g
> ecko-sharp-2.0/gecko-sharp.dll (...)
> 
> Rolf
> 
>> 
>> Any Help would be most appreciated!!!:-D
>> --
>> View this message in context: http://www.nabble.com/New-to-mono-basic-
>> %28vbnc%29-need-help-compiling-source.-tp20525397p20525397.html
>> Sent from the Mono - VB mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Mono-vb mailing list
>> Mono-vb at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-vb
> 
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
> 
> 

Thanks for the reply. I tried your suggestion, but still no joy! I should
have mentioned I'm using SuSE Linux and not Mono on Microsoft Windows.
What I was trying to do was convert the C# TinyGecko example into a Mono
Basic TinyGecko example.
The problem comes in compiling the code, where the C# example you would just
use "mcs GeckoTest.cs -pkg:gtk-sharp-2.0 -pkg:gecko-sharp-2.0', and your
done, but the MonoBasic Compiler which has changed to "vbnc" is just giving
me fits!!! I've tried just about every combination I can think of, from
using the "/r:$MONODIR" switch to the "-libpath" directive, now I'm just
lost as to what to do. I even tried the other suggestion above with a simple
"vbnc Voyager1.vb" (again-- No Joy!).

Could one of you copy this code and see if you can get it to compile,
because if you can then I need to retrace my install path, and possibly
delete then re-install MonoBasic!

Again Thanks for your help!!=)
-- 
View this message in context: http://www.nabble.com/New-to-mono-basic-%28vbnc%29-need-help-compiling-source.-tp20525397p20551500.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list