Hi, all: I knew gtk+ was a C builded technic, but now i have to use it in C++ codes, and the problem i encountered is that, i use *gtk_builder_connect_signals*to connect all the widgets from the xml to the handler function, just as what micahcarrick's tutorial do in C, and complied and link it with -export-dynamic,
*$ g++ entry.cpp `pkg-config --libs --cflags gtk+-2.0` -export-dynamic* no problem happens. But when i run it, the program just couldn't find the handler function, reporting : [EMAIL PROTECTED]:~/Programming/linux/entry$ ./a.out (a.out:12605): Gtk-WARNING **: Could not find signal handler 'on_window_destroy' (a.out:12605): Gtk-WARNING **: Could not find signal handler 'on_exit_clicked' (a.out:12605): Gtk-WARNING **: Could not find signal handler 'on_add_clicked' ^C I knew there must be something different with the g++ linker and the -export-dynamic, but i have no clue how to solve this. Thanks so much if anyone could give me a hand on this. thanks ps: a simple test code was in the attach file. you will find that the c_style code works very well, but not the cpp one.........
entry.tar.gz
Description: GNU Zip compressed data
_______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
