mikeym
April 5th, 2011, 05:39 PM
Hi,
I'm just trying to get started on an indicator applet and I found an article and example in the Gnome Journal (http://gnomejournal.org/article/67/an-introduction-to-the-message-indicator). I'm just trying to compile it but am getting a bit stuck (a new to C).
Here's what I'm getting when I compile:
$ gcc indicator.c -o indicator $(pkg-config glib-2.0 indicate --libs --cflags)
indicator.c:4:43: error: libindicate/indicator-message.h: No such file or directory
indicator.c: In function ‘main’:
indicator.c:38: error: ‘IndicateIndicatorMessage’ undeclared (first use in this function)
indicator.c:38: error: (Each undeclared identifier is reported only once
indicator.c:38: error: for each function it appears in.)
indicator.c:38: error: ‘indicator’ undeclared (first use in this function)
I've installed libglib2.0-dev and libindicate-dev.
I'm assuming either the code has changed from the example or I'm missing some of the required header packages.
I've attached the code if anyone's interested.
I'm just trying to get started on an indicator applet and I found an article and example in the Gnome Journal (http://gnomejournal.org/article/67/an-introduction-to-the-message-indicator). I'm just trying to compile it but am getting a bit stuck (a new to C).
Here's what I'm getting when I compile:
$ gcc indicator.c -o indicator $(pkg-config glib-2.0 indicate --libs --cflags)
indicator.c:4:43: error: libindicate/indicator-message.h: No such file or directory
indicator.c: In function ‘main’:
indicator.c:38: error: ‘IndicateIndicatorMessage’ undeclared (first use in this function)
indicator.c:38: error: (Each undeclared identifier is reported only once
indicator.c:38: error: for each function it appears in.)
indicator.c:38: error: ‘indicator’ undeclared (first use in this function)
I've installed libglib2.0-dev and libindicate-dev.
I'm assuming either the code has changed from the example or I'm missing some of the required header packages.
I've attached the code if anyone's interested.