Hello,

I wrote a program that uses the zlib compression library, specifically the
functions compress() and uncompress(). Though I could find the zlib.h file
in my include directory, I cannot find any .o files that come with the
zlib-devel rpm. I know I need something, because this is the makefile
output looks like.

gcc -c main.c
gcc -o journed main.o crypt.o file.o misc.o
file.o(.text+0x316): In function `add':
: undefined reference to `compress'
file.o(.text+0x75f): In function `extract':
: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make: *** [journed] Error 1

Compilation exited abnormally with code 2 at Tue Aug 5 10:48:15


I just assumed that my exectuable would need the file libz.so at run time,
which means that I have no idea about what options I need to specify in
order to get rid of those error messages.

Thanks for the help.

--
-J. Leddy (a.k.a. iustitia)