Solution to the integrated Cauchy functional equation on the whole line