I'm using a library to handle CSV file so currently I'm linking it by passing the complete path to gcc. But for a different library I just use -l switch and works fine.
What is the difference? is it because the library is not in the path or .... ?
Currently I'm running gcc as:
$ gcc /usr/lib/libcsv.a -o target_file src.c
What should I do to be able run it as:
$ gcc -llibcsv.a -o target_file src.c