hello everyone,
i have a program that uses pcap and mysql libraries.
i have a makefile;
Code:
all:
LIBS=-L/usr/include/mysql -lmysqlclient -lpcap
gcc -Wall -pedantic $(LIBS) -o main main.c
when i run make command it gives the error
Code:
LIBS=-L/usr/include/mysql -lmysqlclient -lpcap
/bin/sh: -lmysqlclient: command not found
make: *** [all] Error 127
but when i was using only mysql library ;
Code:
gcc -o main -L/usr/include/mysql -lmysqlclient main.c
was working.
now how can i compile the source code that uses two libraries?