The attached file should compile. Expected directory is C:\leonardo - if you want to use a different directory, *at least* leonardo\examples\animation.ppj needs to be changed.
The warnings comes from function definitions like this:
some_function_name()
which in C++ means 'no arguments', but in C(99) means 'any number of arguments'. If you change it to:
some_function_name(void)
the Pelles C compiler will stop complaining about *that* (I have tried to make the necessary changes). You still get several warnings about unused variables - no big problem, but more of a 'logical' problem.
The errors comes from weird type casts, which I also have tried to fix.
Pelle