You probably wanted to have writeReg as a member function like the others.
You even have the prototype declared like one, but your implementation is missing the class name, so it is, as d_stranz said, a stand alone function.
So add the ADCreader:: prefix in front of writeReg and it should build.
Cheers,
_
Bookmarks