Compiling problem with first program in tutorial



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to learn how to program with GTK, so I was trying out the
first program in the tutorial:

#include <gtk/gtk.h>

int main( int   argc,
~          char *argv[] )
{
~    GtkWidget *window;

~    gtk_init (&argc, &argv);

~    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
~    gtk_widget_show  (window);

~    gtk_main ();

~    return 0;
}

And I tried to compile it with the supplied command (gcc base.c -o
base `pkg-config --cflags --libs gtk+-2.0`), which gives me the error:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../libpangoxft-1.0.so:
undefined reference to `pango_fc_font_get_raw_extents'
collect2: ld returned 1 exit status


Any ideas on how I can get that to work?

I am using gentoo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCTkWWCHQpyuAY5fARAqIYAKCfFclm8q9J4PD6SVTnY1pp2+dOFACfVXna
mmQCto3kesZbRiAFjKRe+KE=
=TDAj
-----END PGP SIGNATURE-----




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