Let ρ be a two-dimensional even Galois representation which is induced from a character χ of odd order of the absolute Galois group of a real quadratic field. After imposing some additional conditions on χ, we attach ρ to a Hecke eigenclass in the cohomology of GL(2,Z) with coefficients in a certain infinite-dimensional vector space over a field of characteristic not equal to 2.