Zeeshan Pirzada
Zeeshan Pirzada

Reputation: 130

sndfile.h not found on OS X

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

Answers (1)

Paul R
Paul R

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

Related Questions