[Mono-list] problem linking with Wx.Net

Kris Luyten kris.luyten@luc.ac.be
Thu, 25 Sep 2003 11:34:13 +0200


Hi.

I am trying to compile some sample programs using WxWindows.Net GUI
library. It installed fine, but I am not able to compile programs linked
with wx.NET. Apparently it is a linking problem with the libwx-c.so
library.

When I execute "mcs /r:wx.NET /r:System.Drawing Dialogs.cs" I get the
following error:
======
 
** (/usr/local/bin/mcs.exe:1190): WARNING **: Failed to load library
./libwx-c.so (libwx-c.so): ./libwx-c.so: cannot open shared object file:
No such file or directory
 ...
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: Dialogs.cs: (72)
                     Block being compiled: [Dialogs.cs: (85),Internal:
(1)]
 
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for wx.Object --->
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> 06 wx.Object:wxObject_EVT_OBJECTDELETED ()
in <0x0000a> 00 wx.Object:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x22)
[0x400acee6]
...
======

I also tried to ad the line <dllmap dll="wx-c" target="libwx-c.so" />
and <dllmap dll="libwx-c" target="libwx-c.so" /> to
$prefix/etc/mono/config, but it does not solve the problem.

Using mono 0.26 on GNU/Linux.

Thanks,
Kris
-- 
Kris Luyten
Expertisecentrum Digitale Media - Limburgs Universitair Centrum
Wetenschapspark 2  3590 Diepenbeek (Belgium)
email: kris.luyten@luc.ac.be
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/