Hello!
I've been recently trying to learn some sound programming and everything that revolves around it so I
decided to use libsndfile since it seemed so easy.
I set up my environment and downloaded the win32 (using windows 7 x64) binary package on the website
(
http://www.mega-nerd.com/libsndfile/) and installed it. Copied the libs and include files etc.
Now here is where the problems come, to make the libsndfile work you need to include the <sndfile.h>
header file and link to the libsndfile-1.lib file.
When I thereafter try to compile the project (using Visual Studio 2008 Professional Edition) I receive
an error whenever I instantiate the SNDFILE structure. It is defined as this in the header file:
1 2 3 4
|
extern "C"
{
typedef struct SNDFILE_tag SNDFILE;
}
|
Or if preferred the entire file exists here:
http://api.vemus.org/CoreServices/sndfile_8h-source.html
So when I use this code:
SNDFILE sf = NULL;
This is the error I receive:
error C2079: 'sf' uses undefined struct 'SNDFILE_tag' |
I've searched but haven't found anyone with similar problems nor any solutions.
Any help is appreciated!