Hi

OK, here's a guess. It should be looking for a file called libjpeg.a in one of
the dirs in all those dirs that are preceded with a "-L". In some
implementations, the "-L" has to precede the "-l" in order to find the file,
though it doesn't seem like that here. Find libjpeg.a and put it in one of
those dirs (or symlink it) and try again.

gcc -I. -I/usr/include/freetype -I/usr/include/X11 -I/usr/X11R6/include/X11
-I/usr/local/include  pngtogd.o -o pngtogd
-L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/lib -lgd -lpng
-ljpeg -lz -lfreetype -lm
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [pngtogd] Error 1

Ed Hoeffner
1-271 BSBE
312 Church St. SE
Mpls, MN 55455
hoeffner at dcmir.med.umn.edu
612-625-2115
612-625-2163 fax