0

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?

Zeeshan Pirzada
  • 130
  • 1
  • 1
  • 7

1 Answers1

1

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
Paul R
  • 208,748
  • 37
  • 389
  • 560