In the last episode (Jan 25), sam said:
> I am getting the following message when submitting the following:
>
> [sam@linux sam]$ make
>
> gcc -o listener main.o common.o -L/usr/lib/mysql -lmysqlclient -lm
> /usr/lib/mysql/libmysqlclient.a(my_compress.o):
> In function `my_uncompre
how-to-repeat:
compile a c program use mysqlclient 4.0.9.
Below is the makefile and output from running make
Makefile:
CC = gcc
INCLUDES = -I/usr/include/mysql
LIBS = -L/usr/lib/mysql -lmysqlclient -lm
all: listener
main.o: main.c common.h
$(CC) -c $(INCLUDES) main.c