Problem with CDemo

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
trex666
Posts: 18
Joined: Sat Dec 23, 2006 1:15 pm
Contact:

Problem with CDemo

Post by trex666 »

hey guy's i have a problem i have irrlich source working now i can make a dll and that poop but i dont knew where to start and i tryd to compile the Demo in the ../../examples/demo folder but i gat errors he has problems whit irrklang so the error is

Switching to target: default
Compiling: main.cpp
In file included from main.cpp:12:
CDemo.h:21:91: irrKlang.h: No such file or directory
In file included from main.cpp:12:
CDemo.h:65: error: `audio' has not been declared
CDemo.h:65: error: ISO C++ forbids declaration of `ISoundEngine' with no type
CDemo.h:65: error: expected `;' before '*' token
CDemo.h:66: error: `audio' has not been declared
CDemo.h:66: error: ISO C++ forbids declaration of `ISoundSource' with no type
CDemo.h:66: error: expected `;' before '*' token
CDemo.h:67: error: `audio' has not been declared
CDemo.h:67: error: ISO C++ forbids declaration of `ISoundSource' with no type
CDemo.h:67: error: expected `;' before '*' token
Process terminated with status 1 (0 minutes, 0 seconds)
10 errors, 0 warnings

so whats the problem pleas help grts TreX
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

It can't find irrKlang.h

Look around and see if you can find it on your pc, then include it in your compiler's project options
trex666
Posts: 18
Joined: Sat Dec 23, 2006 1:15 pm
Contact:

Post by trex666 »

never mind i founded it on a site thx to a friend of myne
bobo87
Posts: 6
Joined: Mon Jul 04, 2005 3:52 pm
Location: Presov, Slovakia

Post by bobo87 »

you must include path to irrklang.h file into your compiler
for example in Dev C++ Tools->Compiler Options->Directories->C++ includes
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you open up the source file CDemo.h and look at line 21, you'll know what you need to do.

Here is what you'll see there...

Code: Select all

#ifdef USE_IRRKLANG
#  include <irrKlang.h>
   // problem here? go to http://www.ambiera.com/irrklang and download
   // the irrKlang library or undefine USE_IRRKLANG at the beginning
   // of this file.
#  ifdef _IRR_WINDOWS_
#    pragma comment (lib, "irrKlang.lib")
#  endif
#endif
Travis
Post Reply