Compile line options for a libglade project?



I'd like to compile one of the example programs in "The GNOME 2
Developer's Guide" which is located on page 318.

The two include statements in the program are:  
#include<gnome.h>
#include<glade/glade.h>

What would a proper compile line look like?  I've used this with no
success:

gcc `pkg-config --cflags --libs libglade-2.0 libgnome-2.0
libgnomeui-2.0` main.c -o test

Here's the output:
------------------------------------
main.c: In function `main':
main.c:103: error: `PREFIX' undeclared (first use in this function)
main.c:103: error: (Each undeclared identifier is reported only once
main.c:103: error: for each function it appears in.)
main.c:103: error: `SYSCONFDIR' undeclared (first use in this function)
main.c:103: error: `DATADIR' undeclared (first use in this function)
main.c:103: error: `LIBDIR' undeclared (first use in this function)
main.c:103: warning: passing arg 4 of `gnome_program_init' makes integer
from pointer without a cast
main.c:117: warning: passing arg 4 of `g_signal_connect_data' makes
pointer from integer without a cast
------------------------------------

The first error says that 'PREFIX' is undeclared.  I have no PREFIX at
all in the whole program ... so this tells me that I'm not using the
right flags for gcc to properly compile.

Please help

-- Tony





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