Hello!
I am currently working on a school project that would need my C program to talk to the database, but I can't seem to get this working. These are the errors I get:
aginamist@shar:~/code/mysql-max-3.23.49a-pc-linux-gnu-i686/include$ gcc test.c -o test -L'/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib' -lmysqlclient -lm
/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xa2): undefined reference to `uncompress'
/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13a): undefined reference to `compress'
collect2: ld returned 1 exit status
I have included mysql.h
I am currently working on a school project that would need my C program to talk to the database, but I can't seem to get this working. These are the errors I get:
aginamist@shar:~/code/mysql-max-3.23.49a-pc-linux-gnu-i686/include$ gcc test.c -o test -L'/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib' -lmysqlclient -lm
/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xa2): undefined reference to `uncompress'
/home/aginamist/code/mysql-max-3.23.49a-pc-linux-gnu-i686/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13a): undefined reference to `compress'
collect2: ld returned 1 exit status
I have included mysql.h