I just switched from windows to mac, and I was trying to use brew to install libsndfile for one of my C projects. But after installing it still shows cannot find it error in the terminal, and I seems not be able to figure out why.
brew install libsndfile
libsndfile 1.0.31 is already installed and up-to-date.
gcc -lm -lsndfile -o skeleton skeleton.c
fatal error: 'sndfile.h' file not found