Page 1 of 1

irrKlang

Posted: Tue Oct 10, 2006 10:11 pm
by swatter555
I wanted to give irrKlang a look and I noticed it was created in VC 7.0. When I attempt to compile it in VC 8.0 I get the following error:

1>c:\irrklang\include\ISound.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

This happens at virtual isFinished()=0

Im assuming this means that until the author of irrKlang releases the source files, I cannot use irrKlang? Im just assuming its a VC compatibility problem??

Posted: Tue Oct 10, 2006 10:49 pm
by Spintz
Yes, the VC8 compiler is more strict, and does not accept int as a default return value for a function.

You should be able to recompile by modifying that line in the .h file to

Code: Select all

virtual int isFinished()=0;

Posted: Wed Oct 11, 2006 1:42 am
by swatter555
Won't I need the source files if I want to recompile? The source files are not included.

Posted: Wed Oct 11, 2006 2:06 am
by Spintz
No, not in this instance, you don't need to recompile. The compiler used to create the binaries assumed the return value was an int.

You just need to specify the return value explicity with VS8. Modifying the header file will work for this case.

Posted: Wed Oct 11, 2006 3:58 am
by swatter555
Thanks Spintz, your the bomb.