Compiler: Default compiler
Building Makefile: "C:\irrlicht-1.4.1\examples\Demo\Makefile.win"
Executing make...
make.exe -f "C:\irrlicht-1.4.1\examples\Demo\Makefile.win" all
g++.exe -c main.cpp -o obj/main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"../../include"
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: `irrklang' 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: `irrklang' 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: `irrklang' has not been declared
CDemo.h:67: error: ISO C++ forbids declaration of `ISoundSource' with no type
CDemo.h:67: error: expected `;' before '*' token
make.exe: *** [obj/main.o] Error 1
Execution terminated
(but by the way the other exemples have no problems with compiling)
Do you have irrklang downloaded? Irrklang is a seperate audio library not provided in the irrlicht SDK. There should be a #define in the demo project which allows you to compile it without 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.
I compiled the demo and it doesn't have sound after I linked in IrrKlang. I though I had sound when I commented the define and compiled without IrrKlang.h? Any ideas? The IrrKlang demos work fine.
Oh btw I removed the menu file from the project then it wouldnt compile. but it was in a folder and was a broken link in code blocks. So I added it back in and it compiled. Did I mess something up by doing that? Is the menu part precompiled?
If you compile without irrKlang, there will be no audio from irrKlang. It doesn't matter if you link the irrKlang library or not. If the code doesn't call into the library, there will be no sound from that library.
Perhaps the sound was pre compiled into an object?? I did have sound until I compiled with the USE_IRRKLANG define. Everytime I pressed space or mouse click. Code:Blocks is confusing me since I do not know whats being linked into the project. Also the project is using a outdated irrlicht.dll file which doesn't have directX compiled into it but I can't update it since I dont even know which irrlicht.dll file is being linked into the project.
I definitely had directX support previously because I noticed the high level shaders didn't work on my system for openGL but worked fine using DirectX.
Does anyone have a user defined template for using Irrlicht. That way I can look at it and see how everything is linked. I think my best option is to scrap the projects that came with the irrlicht library and make my own.