[SOLVED]createDevice ?
Posted: Fri Apr 21, 2006 8:40 pm
yet another (probably simple) problem. for the quake3 map test creating device looked like this:
IrrlichtDevice* device=createDevice(video::EDT_SOFTWARE,core::dimension2d<s32>(640,480));
as in the movement tutorial it looks like this:
device=createDevice(video::EDT_SOFTWARE,core::dimension2d<s32>(640,480),16,false,false,false,&rec);
now i know ofcourse about the default parameter values in methods, therefor i know that the difference between these two are obvious and both should work. yet the first one works ok, while the second - doesn't. why?
in the second case i get a linker error:
[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
IrrlichtDevice* device=createDevice(video::EDT_SOFTWARE,core::dimension2d<s32>(640,480));
as in the movement tutorial it looks like this:
device=createDevice(video::EDT_SOFTWARE,core::dimension2d<s32>(640,480),16,false,false,false,&rec);
now i know ofcourse about the default parameter values in methods, therefor i know that the difference between these two are obvious and both should work. yet the first one works ok, while the second - doesn't. why?
in the second case i get a linker error:
[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'