Problem with GTK
- From: Gottipati Aravind <slttg cc usu edu>
- To: gtk-list redhat com
- Subject: Problem with GTK
- Date: Tue, 29 Feb 2000 12:18:12 -0700 (MST)
Hi,
I am trying to set up gtk on my linux (debian) machine. I can't
get it to compile even the first program. I get the following message
---------------------------------------------------------------------
~/prog/cpp/gui/gtk $gcc base.c -o base `gtk-config --cflags --libs`
/usr/lib/libdl.a(dlsym.o): In function `doit.2':
dlsym.o(.text+0x22): undefined reference to `_dl_default_scope'
dlsym.o(.text+0x4c): undefined reference to `_dl_default_scope'
~/prog/cpp/gui/gtk $
---------------------------------------------------------------------
The program base.c is the very first program in the GTK tutorial. This
is the program itself.
---------------------------------------------------------------------
#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);
}
----------------------------------------------------------------------
This is what my library paths look like.
LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
this is the output of my gtk-config --libs
-----------------------------------------------------------------------
~ $gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm
~ $
-----------------------------------------------------------------------
can anyone help me with this? I did what the GTK FAQ says and it still
doesn't help.
thank you
Aravind.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]