Reputation: 130
I'm trying to install libsndfile on OSX, and I used homebrew (brew install libsndfile). But when I try to compile some example code with #include <sndfile.h>
using gcc it says sndfile.h cannot be found, but when I check in /usr/local/include
it's right there. Is there something I'm missing?
Upvotes: 0
Views: 1881
Reputation: 213060
Depending on which compiler you're using you may need to add:
-I/usr/local/include
to you your command line, e.g.
gcc -Wall -I/usr/local/include foo.c -o foo
Upvotes: 1