You're not including the standard header.
You got [un]lucky that some of its pertinent definitions were accidentally made available by the other standard headers that you did include ... but operator<< was not.
- https://stackoverflow.com/a/20937531/560648