Hello this is my first post. I am a Trainee programmer who needs help on creating an CD database application. I am following the instructions from Linux programming 4th edition
to create one by copying the codes. Now the problem occurs when I have to add a makefile
I do not uderstand how to use a makefile
work. Oh I am making sure I am using tabs - not spaces.
Below shows the code inside the makefile
app: app_mysql.c app_test.c app_mysql.h
gcc -o app -I/usr/include/mysql app_mysql.c app_test.c -lmysqlclient -L/usr/lib/mysql
First of all, I am confused about what "-lmysqlclient -L/usr/lib/mysql" means. Also when run the Makefile
, I get this error.
~]$ make -f Makefile
make: Nothing to be done for `all'.
Anyone knows what I am doing wrong.
Edit: Also you can download the code from here.
and in ch08/app you will find all you need to create the CD database application.