Re: g_printf undefined?
- From: Roger Leigh <roger whinlatter uklinux net>
- To: bkhl privat utfors se (Björn Lindström)
- Cc: gtk-list gnome org
- Subject: Re: g_printf undefined?
- Date: 16 May 2003 20:33:19 +0100
bkhl privat utfors se (Björn Lindström) writes:
> I'm thinking of starting using GTK, but the fun stops pretty
> quickly. Compiling this:
> with:
>
> % gcc `pkg-config --cflags glib-2.0` -o hello hello.c
>
> gives me:
>
> /tmp/cc7MjZY1.o(.text+0x18): In function `main':
> : undefined reference to `g_printf'
> collect2: ld returned 1 exit status
You need to use `pkg-config --libs glin-2.0` as well, otherwise it
won't link with libglib.
HTH,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848 available on public keyservers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]