| Andrew Culver ( @ 2004-11-18 19:59:00 |
| Current music: | DI.fm Trance (96 kbps) |
Thanks to Muntyan.
A big kudos to Muntyan from #gtk+ on irc.gnome.org.
If you're having trouble getting GTK+/libglade on Win32 to recognize your callback functions, this is the trick:
#define EXPORT __declspec(dllexport)
EXPORT void on_button1_clicked(GtkWidget *widget, gpointer user_data) {
/* do something useful here */
g_print("Thank you Muntyan.\n");
}This should be better documented, so hopefully I'll update with more details later.
Compiler options should be:
-mms-bitfields -export-dynamic `pkg-config --cflags --libs gtk+-2.0 libglade-2.0`