dave, you made my day.
the object files go before the linking directives, so this doesn't work:
gcc -o ohs `gtk-config --libs` -lcdk -lncurses callback.o (other .o files)
but this does:
gcc -o ohs callback.o (other .o files) `gtk-config --libs` -lcdk -lncurses
note that gcc seems to already look in /usr/local/lib for static libraries,
so my -L directive was superfluous.
i don't see anything in the man pages that could've prevented me from
falling into this trap. i guess the past few years i've been "getting it
right" without knowing that "object files come before linking directives for
gcc".
the wierd thing is that gcc found the static library (i checked -- gcc does
produce a fatal error if it can't find a lib). it just didn't DO anything
with the library when the object files are listed at the end.
btw, cdk is nothing short of amazing. whoever the author is, he did a
terrific job!
thanks, dave!
pete
begin: Dave Peticolas <[EMAIL PROTECTED]> quote
> > i'm getting an error:
>
> > gcc -o ohs `gtk-config --libs` -lncurses -lcdk -L/usr/local/lib
> callback.o
> > main.o content.o pfunctions.o GTKmain.o NCURSESmain.o
> > NCURSESmain.o: In function `NCURSESmain':
>
> Have you tried putting the .o files first? In other words:
>
> gcc -o ohs callback.o main.o content.o pfunctions.o GTKmain.o
> NCURSESmain.o -L/usr/local/lib `gtk-config --libs` -lncurses -lcdk
>
> dave
>
>
--
"The following addresses had permanent fatal errors..." [EMAIL PROTECTED]
-- Mailer Daemon www.dirac.org/p