PB2 not defined

Okay, following up on my own question. The problem seems to be that renaming fat.c to fat.cpp actually creates more problems then it solves. A better way (in my opinion) is to leave it named fat.c and fix all the "for loop" errors by moving the variable declarations outside the loop. After doing this, I am now able to compile....