Compilation error on MSVC++ 2005
Posted: Fri Mar 09, 2007 9:07 pm
Hi all,
On compiling code using irrKlang on MSVC++ 2005, I get the errors :
And on commenting #define IRRKLANG_API __attribute__((visibility("default"))) on line 112 in irrKlang.h and deleting IRRKLANG_API on line 137, the compilation succeeds.
Bug ?
And it works well on mingw without changing anything
On compiling code using irrKlang on MSVC++ 2005, I get the errors :
Code: Select all
irrKlang.h(137) : error C3861: 'visibility': identifier not found
irrKlang.h(137) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
irrKlang.h(137) : error C2146: syntax error : missing ';' before identifier 'ISoundEngine'
irrKlang.h(137) : error C2143: syntax error : missing ';' before '*'
irrKlang.h(137) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
irrKlang.h(140) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Bug ?
And it works well on mingw without changing anything