Global solution to a generalized Cahn-Hilliard equation with viscosity