Solve the error output directory of cpp projects.