Code: Select all
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#endif
I suggest removing the above hardcode pragma and adding irrlicht.lib to the linker option. This is because:
1. Source code should not have such a strong dependency on library name(consider you must run both of the release/debug build...).
2. #pragma is actually not portable and macros must be used for above purpose, which is not clean. And for compilers other than visual studio, the above pragma is meaningless.
3. It saves nothing, the library search path still must be specified in linker option and why not just add the library name there directly?
Regards,
Jiang