Re: [gtk-list] Re: glib
- From: Shevek <shevek plaice valhalla net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: glib
- Date: Thu, 7 May 1998 22:33:58 +0000 ( )
Errr I think I know this one. I had it today as well.
Yopu have to use L_FLAGS and L_POSTFLAGS, thus:
I586_L_FLAGS = $(PROF) -L/usr/X11R6/lib -L/usr/local/lib
L_FLAGS = $(I586_L_FLAGS)
L_POSTFLAGS = -lgtk -lgdk -lglib -lXext -lX11 -lm -lmsql
rm -f $(PROGNAME)
$(CC) $(C_FLAGS) $(L_FLAGS) -o $(PROGNAME) $(O_FILES) $(L_POSTFLAGS)
If you give the library names before the object files, gcc dosent' link
them. You have to give it all the paths and optoins, then the output file,
then all the input files and libraries in that order, try it with L_FLAGS
and L_POSTFLAGS like that, it should work.
On Thu, 7 May 1998, Doug South wrote:
> KC5TJA wrote:
> > On Thu, 7 May 1998, Doug South wrote:
> > > Well ...
> > >
> > > LIBS=-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11
> > > -lm
> > >
> > > which is used on my link command. What else could I be doing wrong?
> > I know that, with some programs at least, when they create shared
> > libraries, you need to run "ldconfig" to bring ld.so's database of what
> > symbols go with what modules up to date.
> Thanks, but I've done that too. 8(
> My wasted space --- http://www.squirrel.net/~dsouth
> To unsubscribe: mail -s unsubscribe firstname.lastname@example.org < /dev/null
GM/CS/MU -d+ H+>++ s+: !g p2 au0 !a w+++ v-(---) C++++$ UL++++$ UB+
US++ UI+++$ P+>++++ L++++$ 3+ E--- N+ K !W(-----) M+(-) !V -po+ Y+ t+
5++ !j !R G' !tv b+++ D++ B--- e+ u+* h++ f? r-- n---- y?
] [Thread Prev