C error: “Undefined reference to 'sf_open'” from libsndfile
问题 I am using Code::Blocks to test some codes, and I just can't biuld this code: #include <stdio.h> #include <stdlib.h> #include <sndfile.h> int main() { SNDFILE *sf; sf = sf_open("file.wav",SFM_READ,&info); //error happens in this line ... And the error is "undefined reference to `sf_open'", this not only happens to sf_open but also to any function from sndfile.h. Actually here is what I did to get here: I've first downloaded and installed libsndfile for Windows x64 (I'm using Windows 10) from