You are not logged in.

#1 2008-10-15 22:09:22

vkumar
Member
Registered: 2008-10-06
Posts: 166

[solved] gtkmm headers aren't found..

I'm trying to get a very simple gtkmm program to compile, like so;

$ g++ simple.cc -o simple 'pkg-config gtkmm-2.4 --cflags --libs'

G++ keeps telling me that the gtkmm headers do not exist.

I tried to change my #include to "#include "/usr/include/gtkmm-2.4/gtkmm.h"', but that doesn't work either.

The package is installed and I've verified that the files exist - can anyone help me get this working?

Much appreciated!

Last edited by vkumar (2008-10-16 02:30:00)


div curl F = 0

Offline

#2 2008-10-16 01:45:44

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: [solved] gtkmm headers aren't found..

I'm sorry!; is there any way to move this thread to General Programming?


div curl F = 0

Offline

#3 2008-10-16 01:57:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: [solved] gtkmm headers aren't found..

Have you looked at the output of "pkg-config gtkmm-2.4 --cflags --libs"?  Do the right paths and libraries get included?

Offline

#4 2008-10-16 02:29:41

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: [solved] gtkmm headers aren't found..

I got it working now smile.
For some reason, quotes are handled badly with my keyboard. Anyways, I ran the pkg-config command and stored the output in 'gtkmmlibs', which I use as a replacement.


div curl F = 0

Offline

Board footer

Powered by FluxBB