[Mono-list] Struggling with wxWindows wrapper...
J. Perkins
jason@379.com
07 Jan 2003 10:10:41 -0500
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
I am using the 0.17 Mono RPMs on an otherwise stock RH8.0 system.
I apologize for my inexperience here, but can anyone give me a pointer
or two about how to properly diagnose and fix this problem? Any
assistance would be very much appreciated.
Jason
379