wx.hrl and glu.hrl were defining macros that expand to malformed terms. git fetch git://github.com/vladdu/otp.git wx_macro_fixes https://github.com/vladdu/otp/compare/wx_macro_fixes https://github.com/vladdu/otp/compare/wx_macro_fixes.patch best regards, Vlad