I get this error when I am trying to use a vector with values that are a custom class. The custom class inherits QLabel.

I have:

Qt Code:
  1. class SomeClass : public QLabel {
  2. .
  3. .
  4. };
To copy to clipboard, switch view to plain text mode 
I create a vector of SomeClass:
Qt Code:
  1. vector<SomeClass> foo;
To copy to clipboard, switch view to plain text mode 
and then when I do:
Qt Code:
  1. foo.push_back(NULL);
To copy to clipboard, switch view to plain text mode 
I get this error. In eclipse there is a red underline under "class SomeClass : public QLabel {"