solve compile error