issue 2430:fix a compiling error and add missing cpp