On 01/07/03 J. Perkins wrote: > I am looking into writing a .NET wrapper for wxWindows and I am running > into what I think is a library version problem on Linux. I am not very > experienced with Linux and am not sure how to resolve the issue. > > I have created an .so which is statically linked to wxWin. The .so has a > single function which creates and runs a simple wxApp. I wrote a small C > app to load the .so and call the function, and that works okay. When I > try to write an equivalent C# app using [DllImport], I get a > NullReferenceException in the .so. I have traced this down to a call to > gtk_init(). My suspicion is that wxWin and Mono are linking to different > versions of gtk. > > `wx-config --libs` reports: > -L/usr/local/lib /usr/local/lib/libwx_gtk-2.4.a -L/usr/lib > -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib > -lpthread -ldl -lXi -lXext -lX11 -lm -lpng -ljpeg -ltiff -lz -ldl -lm
It looks like your version of wxwindows uses gtk+ (and glib) 1.2/1.4, but you need to install the new one that uses Gtk+ (and Glib) 2.0. Version 2.4 should support Gtk+ 2.0. lupus -- ----------------------------------------------------------------- [EMAIL PROTECTED] debian/rules [EMAIL PROTECTED] Monkeys do it better _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
