make throw an error when I include some libraries like
make uses options such as
-lm to link the object files for header file
For example, the command
would execute the following:
clang -ggdb -std=c99 -Wall -Werror hello.c -lcrypt -lcs50 -lm -o hello
But when I included
string.h, I was expecting it to throw an error assuming that, by default, it doesn't link
string.h. However, it got compiled successfully!
Can anyone explain me the reason behind that?