I'm trying to create a lib based on irrlicht but even easier to use. I compiled irrlicht as a static library and it went perfect. Then I was able to build my lib with not problems. But when I went to build a test application then it fails. Here is the output from VC++ 7.1:
Code: Select all
EGDKDemo1 warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
EGDKDemo1 error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
EGDKDemo1 error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *,char const *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PBD@Z) referenced in function "public: void __thiscall EGDK::Video::createTestWindow(void)" (?createTestWindow@Video@EGDK@@QAEXXZ)
EGDKDemo1 fatal error LNK1120: 2 unresolved externals
[\code]
Am I aproaching my task the right way? Is there another method of doing what I want? BTW All the path are correct so I'm pretty sure it has nothing to do with VC++ not finding the library or something of that matter.
Thanks a lot for time.
-r