irrklang questions

My output is :


D:\Pictures\CustomStory\main.cpp|31|warning: unknown escape sequence: '\D' [enabled by default]|


D:\Pictures\CustomStory\main.cpp|31|warning: unknown escape sequence: '\P' [enabled by default]|



obj\Debug\main.o||In function `main':|



D:\Pictures\CustomStory\main.cpp|26|undefined reference to `_imp___ZN8irrklang20createIrrKlangDeviceENS_21E_SOUND_OUTPUT_DRIVEREiPKcS2_'|



||=== Build finished: 1 errors, 5 warnings (0 minutes, 1 seconds) ===|



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


  #include <irrklang.h>
#include <windows.h>

using namespace std;

using namespace irrklang;


#pragma comment(lib, "irrKlang.lib")

int main(int argc, const char** argv)
{
   // start the sound engine with default parameters
   ISoundEngine* engine = createIrrKlangDevice();

   if (!engine)
      return 0; // error starting up the engine

        engine->play2D("D:\Libraries\Documents\Downloads\Papa Roach - Hollywood Whore.mp3", true);

}
closed account (28poGNh0)
put two backslashes instead of one

"D:\\Libraries\\Documents\\Downloads\\Papa Roach - Hollywood Whore.mp3"
Last edited on
My last error is

D:\Pictures\CustomStory\main.cpp|26|error: 'create' was not declared in this scope|
Sorry it did not copy all the way... full output here


D:\Pictures\CustomStory\main.cpp|26|error: 'createIrrkLangDevice' was not declared in this scope|
closed account (28poGNh0)
tell me how did you installed "irrklang.h" I tried to find some docs to help you but without any success
Last edited on
I linked my include file, and lib file from the download, then I copied the include file to code blocks include file, and the lib file to code blocks lib file.
@code I accidently copied it wrong, as you see here it is spelled perfectly correct.
oh nvm I did do it wrong, thanks man!
You have been helping me all orning :)
Topic archived. No new replies allowed.