Re: gdk_threads_init()
- From: "Frank W. Miller" <fwmiller cornfed com>
- To: Olexiy Avramchenko <olexiy irtech cn ua>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gdk_threads_init()
- Date: Sat, 22 May 2004 10:35:58 -0400
Thanks for the reply!
I've replaced my Makefile lines with the following:
CFLAGS = -c -Wall
#CFLAGS += `gnome-config --cflags gnome gnomeui`
#CFLAGS += `pkg-config gthread-2.0 --cflags`
CFLAGS += `pkg-config gnome gnomeui gthread --cflags`
and
#LIBS = -lsip -lpthread
LIBS = -lsip
LIBS += `pkg-config gnome gnomeui gthread --libs`
I'm still having the same problems. For posterity, here's the output of
these pkg-config commands:
[fwmiller localhost gnome]$ pkg-config gnome gnomeui gthread --cflags
-D_REENTRANT -DNEED_GNOMESUPPORT_H -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/include/gnome-1.0
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include
[fwmiller localhost gnome]$
and
[fwmiller localhost gnome]$ pkg-config gnome gnomeui gthread --libs
-rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib
-lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXi -lXext -lX11 -lgnome
-lgnomesupport -lesd -laudiofile -lm -lgthread -lpthread -lglib
and the output from the build:
[fwmiller localhost gnome]$ make
gcc -c -Wall `pkg-config gnome gnomeui gthread --cflags` -I../include
-o callbacks.o callbacks.c
gcc -c -Wall `pkg-config gnome gnomeui gthread --cflags` -I../include
-o gui.o gui.c
gcc -c -Wall `pkg-config gnome gnomeui gthread --cflags` -I../include
-o log.o log.c
gcc -c -Wall `pkg-config gnome gnomeui gthread --cflags` -I../include
-o main.o
main.c
main.c: In function `main':
main.c:60: warning: implicit declaration of function `gdk_threads_init'
gcc -c -Wall `pkg-config gnome gnomeui gthread --cflags` -I../include
-o ringback.o ringback.c
gcc -L../src -o sip callbacks.o gui.o log.o main.o ringback.o -lsip
`pkg-config gnome gnomeui gthread --libs`
main.o(.text+0x112): In function `main':
: undefined reference to `gdk_threads_init'
collect2: ld returned 1 exit status
make: *** [all] Error 1
I would be suspicious that there was something wrong with my
installation but I have tried to do the build on a fresh Fedora Core 1
installation (the output here is from a Red Hat 9 system) that I have
and I encounter exactly the same errors.
Thoughts?
FM
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]