Re: [gtkmm] cannot find gtkmm.h



Paul Rivera wrote:

I've been trying to update my gtk libraries to the latest versions.  I'm coding applications using gtkmm.  A lot of sample code I found in the internet use gtkmm.h instead of gtk--.h.  I've read that gtk--.h is the outdated version.  I'm using mandrake 10 community edition, kernel 2.6.3-4mdk.

Here are the steps I've done:
  install
  sigc++-2.0,
  glib-2.0,
  glibmm-2.4,
  atk-1.6.0,
  pango-1.4.0

  I've also installed gtk+-2.4.3


Installing gtkmm-2.4 as well would be a good idea.


compile with: g++ MyApp.cc -o MyApp `gtkmm-config --cflags --libs`
I get an error:
  MyApp.cc:1:19: gtkmm.h: No such file or directory


gtkmm-config is obsolete, use `pkg-config gtkmm-2.4 --cflags --libs` instead.

--
Christer Palm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]