Hello all:
Is it possible to build irrlicht as a static lib? If so then how?
I have tried to do this since the source code is given but I have failed. Thanks a lot for your time.
-r
How to build irrlicht as a static library?
In IrrCompileConfig.h find the section for dll exports are defined and replace with
then in your preprocessor defines define _IRR_STATIC_LIB_
where you do this depends on your compiler.. In vc its in your project properties in C/C++ Preprocessor..
then change your project to be a static lib instead of dll
something like this used to be in irrlicht but has been removed
Code: Select all
// Windows Only DLL export definition
#if defined(_IRR_WINDOWS_) && !defined(_IRR_STATIC_LIB_)
# ifdef IRRLICHT_EXPORTS
# define IRRLICHT_API __declspec(dllexport)
# else
# define IRRLICHT_API __declspec(dllimport)
# endif // IRRLICHT_EXPORT
#else
# define IRRLICHT_API
#endif // _IRR_WINDOWS_
where you do this depends on your compiler.. In vc its in your project properties in C/C++ Preprocessor..
then change your project to be a static lib instead of dll
something like this used to be in irrlicht but has been removed