I get a different error when trying to compile your code:
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&,
void (&)())'
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:
Code:
b.signal_clicked().connect(sigc::ptr_fun(slot_x));
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:
Code:
$ 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
-I/usr/include/freetype2 -I/usr/include/atk-1.0
The only other difference that I see is that you appear to be using gtkmm-2.0 while I'm using gtkmm-2.4....