This is odd... there must have been some other error as well before that, something about a missing header file. Because those errors are indicative of missing header files that define "volScalarField" and "volVectorField".