Many times you will want to save the results in a file. You can use the normal shell redirection for piping error output to a file.
cppcheck file1.c 2> err.txt