I often miss this or that when specifying library files used in my program, resulting in some functions undefined referenced to during linking. This still happens even when I use "gcc `pkg-config --cflags --libs libraryname` -o my-prgm my-prgm.c" or look up in some documents of the library. The latter often makes me lost and suspect if I am too stupid to find the info I need. I believe this by no means only happens to me. So what's your strategy or tricks to locate the library files you need?
Thanks in advance!