Hi, This is:
http://bugzilla.ximian.com/show_bug.cgi?id=74982 On 8/21/05, Samuel Kaufman <[EMAIL PROTECTED]> wrote: > I can't seem to manage linking an application and a library with the > same name under Mono 1.1.8.2. I'd really appreciate any help. Here's > what's going on... > > Lib.cs contains: > > using System; > public class Blah > { > public static void SaySomething() > { > Console.WriteLine("Woof!"); > } > } > > > And App.cs contains: > > using System; > public class TheApp > { > static void Main() > { > Blah.SaySomething(); > } > } > > > I then run... > > gmcs -out:Blah.dll -target:library Lib.cs > gmcs -out:Blah.exe -r:Blah.dll -target:exe App.cs > mono Blah.exe > > And get... > > ** (Blah.exe:6625): WARNING **: Missing method SaySomething in > assembly /home/emrys/blah/Blah.exe, type Blah > > Unhandled Exception: System.NullReferenceException: Object reference > not set to an instance of an object > > > > If I rename Blah.exe to TheApp.exe, I still get that error. But if I > recompile the app with -out:TheApp.exe instead, then I'll get my > "Woof!" > > I should mention that MS.NET doesn't have this problem and that I > nearly went insane figuring out what was going on here, so if > anything's incoherent, please tell me. I'll file this as a bug if > that's what it is. > _______________________________________________ > Mono-devel-list mailing list > [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-devel-list > _______________________________________________ Mono-devel-list mailing list [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-devel-list