[gtkmm] Problems compiling simple program



When I try to compile a simple program that uses gtkmm, I get the following error:

g++ -Wall main.C -o main `pkg-config gtkmm-2.0 --cflags --libs`
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux/bin/ld: cannot find -lgtkmm-2.0
collect2: ld returned 1 exit status

gtkmm is installed in /usr/local/lib.  That directory is listed in /etc/ld.so.conf, ldconfig has been re-run.

Also, if I try to create a MessageDialog object, I get "MessageDialog undeclared in namespace Gtk".

What am I doing wrong?  I'm using gtkmm 2.2.2 and gtk+ 2.2.1 on Slackware 9.0, gcc 3.2.2

thanks,
-darkside



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