Re: statically linked GTK+ & glibc libraries
- From: "Daniel Ding" <danielding hotmail com>
- To: gtk-list gnome org
- Cc: john cupitt ng-london org uk
- Subject: Re: statically linked GTK+ & glibc libraries
- Date: Tue, 11 Sep 2001 10:29:50 -0700
At least two users reported that the update with static link GTK+ libraries worked on SuSE Linux. Thank you very much!
Daniel
>From: John Cupitt
>To: Daniel Ding
>CC: gtk-list gnome org
>Subject: Re: statically linked GTK+ & glibc libraries
>Date: Fri, 07 Sep 2001 12:53:07 +0100
>
>Daniel Ding wrote:
> > But my Makefile looks like this:
> >
> > LIBFILE=-L/usr/X11R6/lib -lpthread -lm `gtk-config --libs gthread`
> >
> > How should I change this? Does it matter for compiling? such as:
> >
> > mainwin.o: mainwin.c webfone.h
> > $(CC) `gtk-config --cflags` -c mainwin.c
>
>Hi Daniel,
>
>If you can, maybe you should think about switching to the automake/autoconf/etc.
>tools, they make Makefiles much easier to maintain (I think).
>
>Comment out your LIBFILE line, and work out what it all expands to. On my
>machine, this would be:
>
>LIBFILE = -L/usr/X11R6/lib -lpthread -lm -L/usr/local/lib \
> -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule \
> -lgthread -lglib -lpthread -ldl -lXext -lX11 -lm \
>
>Now insert the static/dynamic pairs around all the dodgy looking libraries. In
>my experience, you need to statically link against:
>
> -lgtk -lgdk -lgmodule -lgthread -lglib
>
>and no others. Your mileage may vary :-)
>
>John
>
>_______________________________________________
>gtk-list mailing list
>gtk-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtk-list
Get your FREE download of MSN Explorer at
http://explorer.msn.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]