Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Linking irrKlang to Visual Studio 2010 WinForms project

Kovy
Guest
Quote
2013-01-19 10:26:41

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?


erik
Registered User
Quote
2013-01-20 07:17:49

WinForms is a .NET project, isn't it? Use irrKlang .NET then, it looks like you are using the native, C++ version.


Kovy
Guest
Quote
2013-01-20 10:44:05

I use .NET 4 irrKlang.dll


erik
Registered User
Quote
2013-01-20 12:52:39

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.


Kovy
Guest
Quote
2013-01-20 17:02:42

So I will ask again.

I use Win Forms application for C++. Is your advice for C++ or C?


erik
Registered User
Quote
2013-01-22 06:08:33

Not CSharp. .NET.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact