Say I'm building and linking my application with clang
clang -I/usr/local/include -c -o app.o main.c
clang -L/usr/local/lib -o app app.o -lfoo
How do I know where libfoo.a
or libfoo.dylib
is located? Is there a verbose mode?
It's possible to search /usr/lib
and /usr/local/lib
manually, but doing so would be too tedious when you use many libraries.