I'v got VC.NET 2003 from MSDNAA.
I'v got a problem with IrrLicht.
I set IrrLicht to Static lib in General properities -> General -> Configuration type
Then i add this:
Code: Select all
#if defined(WIN32) && !defined(IRRLICHT_STATIC)
#ifdef IRRLICHT_EXPORTS
#define IRRLICHT_API __declspec(dllexport)
#else
#define IRRLICHT_API __declspec(dllimport)
#endif // IRRLICHT_EXPORT
#else
#define IRRLICHT_API
#endif // WIN32Code: Select all
#if !defined(IRRLICHT_STATIC)
#ifdef IRRLICHT_EXPORTS
#define IRRLICHT_API __declspec(dllexport)
#else
#define IRRLICHT_API __declspec(dllimport)
#endif
#else
#define IRRLICHT_API
#endif And commented out not needed ones.
Then i add IRRLICHT_STATIC to my projekt in general properities -> C/C++ -> Preprocessor so it's like this: WIN32;_DEBUG;_CONSOLE;IRRLICHT_STATIC
IrrLicht general properities -> C/C++ -> Preprocessor looks like this: WIN32;_DEBUG;_WINDOWS;_USRDLL;IRRLICHT_EXPORTS
IrrLicht comlipes fine. Lib is created.
But when I compile application it throws somthing likie this:
My projekt General properities -> General -> Configuration type is set to Application (exe), so there is no need to create lib? Why is it created? (first problem)Linking...
Creating library Debug/App.lib and object Debug/App.exp
It's linking to exe too.
After a clean build i ge this:
How to fix this?irrlicht.lib(CGUIButton.obj) : warning LNK4204: 'c:\MyProjects\Application\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
Please help me.