I have installed sndfile from the Mega-Nerd website. After installing it I tried adding it to the Code Blocks using this method:
How do I link to a library with Code::Blocks?
The program still does not see the methods defined in the library giving me the error:
C:\Users\Blanka\Desktop\asdasdasd\main.c|13|undefined reference to `sf_open'| ||error: ld returned 1 exit status|
I am providing paths to library, giving the compiling flags and manually pasting the header files inside the project folder, nothing helps. The problem is that it sees other functions/variables from the sndfile.h
header, for example SF_INFO
and SF_FORMAT_WAVE
.
I have succeeded installing the library on Ubuntu, however I need to install it on Windows now.