And this happens after i select non-finite numbers in code interface config paramter box. And if i don't select then there is another error pops up-
Error: The nonfinite 'inf' is required but nonfinite support is not selected. Please enable nonfinite support by selecting 'Configuration Parameters > Code Generation > Interface > non-finite numbers'.