Gtk-WARNING Could not find a signal handler on netbeans

I am creating an interface using polarization and gtk c programming using netbeans. I created my project after http://zetcode.com/articles/netbeanscdevelopment/ . I even added libgmodule2-0.so and libglib2-0.so to the netbeans linker options. When I start, I get a Gtk-WARNING warning. Could not find the signal. When I close mainwindow nothing happens (this is where my signal should be caught)

If I compile my program like this (not using netbeans) 

gcc -o tut main.c $ (pkg-config --cflags -libs gtk + -2.0 gmodule-2.0)

It works great. When I close the main castle, it closes.

I like to use the IDE, because all the functions that I get (specifically debugging). Any suggestion on this issue?

+3
source share
1 answer

I think adding libgmodule2-0.soand libglib2-0.soto the linker options is not enough. Run the command pkg-config --cflags gtk+-2.0 gmodule-2.0in your terminal and see what it says. Add all the directories listed in -Ito the include directories of your NetBeans project and add any other flags to the C compiler options.

Then run pkg-config --libs gtk+-2.0 gmodule-2.0in your terminal and add everything that is listed there to the linker options.

+2
source

Source: https://habr.com/ru/post/1760241/


All Articles