i tried making a new project, to see if i could get it to work, and it seems like it does work now.
i have no idea what i did wrong, but at least i think i have got it working. luckily i had only gotten like 200-300 lines of code, so i dont loose much work :)
Anyway, just taking a guess: The header included before tiles.h may have been missing a semicolon. It's hard to say without anything to look at. The snippet posted is fine.