Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I have a problem with linking irrKlang to my Win Forms project. Error 1 error LNK2028: unresolved token (0A000028) "class irrklang::ISoundEngine * __clrcall irrklang::createIrrKlangDevice(enum irrklang::E_SOUND_OUTPUT_DRIVER,int,char const *,char const *)" (?createIrrKlangDevice@irrklang@@$$FYMPAVISoundEngine@1@W4E_SOUND_OUTPUT_DRIVER@1@HPBD1@Z) referenced in function "public: __clrcall player::player(void)" (??0player@@$$FQAM@XZ) D:\projekt mp3 player\visual_mp3\mp_player\mp_player\mp_player.obj mp_player I have downloaded all parts a add it to the project. When I try to link this library for example pragma comment(lib, "irrKlang.lib") or I set it in linker properties, this error appears. Please can you give me an advice, how to fix it? |
||||
|
WinForms is a .NET project, isn't it? Use irrKlang .NET then, it looks like you are using the native, C++ version. |
||||
|
I use .NET 4 irrKlang.dll |
||||
|
In .NET don't link with the pragma. Remove that line again and add the irrklang.net library as reference to your project. Right-click your solution, and there should be somewhere an option to add a reference. |
||||
|
So I will ask again. I use Win Forms application for C++. Is your advice for C++ or C? |
||||
|
Not CSharp. .NET. |
|