Let's first eradicate corrupt files and path name incompatability...
Have you sucessfully compiled a simple blink led program with PM?
If yes, then it's something in your main program body... comment out the possible offending line and see if it compiles... time to start narrowing down what's causing the error.
Bookmarks