irrklang questions

Jul 19, 2013 at 1:27am
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);

}
Jul 19, 2013 at 1:34am
closed account (28poGNh0)
put two backslashes instead of one

"D:\\Libraries\\Documents\\Downloads\\Papa Roach - Hollywood Whore.mp3"
Last edited on Jul 19, 2013 at 1:34am
Jul 19, 2013 at 1:38am
My last error is

D:\Pictures\CustomStory\main.cpp|26|error: 'create' was not declared in this scope|
Jul 19, 2013 at 1:40am
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|
Jul 19, 2013 at 3:10am
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 Jul 19, 2013 at 3:11am
Jul 19, 2013 at 9:34am
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.
Jul 19, 2013 at 11:46am
Jul 19, 2013 at 11:56am
@code I accidently copied it wrong, as you see here it is spelled perfectly correct.
Jul 19, 2013 at 11:56am
oh nvm I did do it wrong, thanks man!
Jul 19, 2013 at 11:57am
You have been helping me all orning :)
Topic archived. No new replies allowed.