I have some very simple code in the constructor of my plugin just to try and get libsndfile working.
Here it is:
Code: Select all
SNDFILE* inFile = 0;
SF_INFO info;
char* fileName = new char[256];
strcpy(fileName, "C:\\music.wav");
inFile = sf_open(fileName,0,&info);
sf_close(inFile);
MyPugin error LNK2019: unresolved external symbol _sf_close referenced in function "public: __thiscall MyPlugin::MyPlugin(long (__cdecl*)(struct AEffect *,long,long,long,void *,float))" (??0MyPlugin@@QAE@P6AJPAUAEffect@@JJJPAXM@Z@Z)
Here's the funny thing. If I remove the call to sf_open, there is no error. For example, if the code we're just:
Code: Select all
SNDFILE* inFile = 0;
SF_INFO info;
char* fileName = new char[256];
strcpy(fileName, "C:\\music.wav");
Any suggestions?