You have to get the timer from the IrrlichtDevice, in your case you only have an uninitialized pointer. But that's not the problem you have (you would notice that at runtime not compile-time). Not exactly sure about your errror - it also doesn't look complete. Is this really the whole error? (Please never try to shorten compiler errors, they are already as short as they can be without throwing out information others need to help you - just copy paste them full when asking for help)