So where does this error:
expected unqualified-id before '<?' token
'Cell' does not name a type
come from? Could you paste a bit more, including the last command what was run etc?

EDIT: And what does your .pro file look like?