I found the mistake. I had a double definition of the variable panAtStart in another included .c-file. There panAtStart was defined as ANGLE*.

Regards,
PGM.