Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) class
irrklang::ISoundEngine * __cdecl irrklang::createIrrKlangDevice(
enum irrklang::E_SOUND_OUTPUT_DRIVER,int,char const *,char const *)"
(__imp_?createIrrKlangDevice@irrklang@@YAPAVISoundEngine@1@W4E_SOUND_OUTPUT_DRIVER@1@HPBD1@Z)
referenced in function "public: __thiscall Sounds::Sounds(void)" (??0Sounds@@QAE@XZ)
C:\Users\Shum\Dropbox\DM2231_Lab(13)\DM2231_Lab\DM2231_Lab\Sounds.obj DM2231_Lab
This is the error I've been getting when I tried to link the Irrklang sound to my current project. The strange thing is that its been working for all my other projects, and the only difference for this one is that I've updated the Irrklang files with the latest from their web.
#include <irrKlang.h>
using namespace irrklang;
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
As far as I see, there is nothing wrong here. In my project properties, my linker input included the additional dependencies for irrKlang.lib. I know its in the right place since my freeglut.lib is working.
I THINK the problem is because it can see the header files, but cannot access the library (or the dll files). But my freeglut is working fine, its just irrklang that isn't. Really stumped.
I am using microsoft Visual Studios 2013.