Strange errors in math.h when trying to compile a project