I get a different error when trying to compile your code:
$ g++ -o hello hello.cpp `pkg-config gtkmm-2.4 --cflags --libs`
hello.cpp: In function `int main(int, char**)':
hello.cpp:12: error: no matching function for call to `mem_fun(Gtk::Button&,
The reason for the error is that sigc::mem_fun is meant to create a functor for class member functions, and you are trying to create a functor to a global function. Use the following instead:
But, that still may not take care of your problem because it's not finding sigc for some reason...
What is the output of pkgconfig gtkmm-2.0 --cflags?
Mine is as follows:
$ pkg-config gtkmm-2.4 --cflags
-I/usr/local/include/gtkmm-2.4 -I/usr/local/lib/gtkmm-2.4/include -I/usr/local/i
nclude/glibmm-2.4 -I/usr/local/lib/glibmm-2.4/include -I/usr/local/include/gdkmm
-2.4 -I/usr/local/lib/gdkmm-2.4/include -I/usr/local/include/pangomm-1.4 -I/usr/
local/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/local/include/sigc++-2.0 -
I/usr/local/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/i
nclude -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include
The only other difference that I see is that you appear to be using gtkmm-2.0 while I'm using gtkmm-2.4....