Ok, i found what was wrong: i had the following piece of code:
Code:
enum Types
{
    Camera,
    Area
};
So frustrating [:P]