Neither cam nor getProj() is declsred.
Other errors you could get from your compiler!