title: No member function declared in class - error with basic compile
body: <p>Getting this error when compiling a basic class and header. Not sure if I'm missing something obvious? Can provide any additional details if needed. </p>
  
  <p>Note: I added <code>#include &lt;string&gt;</code> in Event.h and the error remains.</p>
  
  <p>Event.cpp</p>
  
  <pre><code>#include "Event.h"
  #include &lt;string&gt;
  
  std::string Event::getLabel() {
      return label;
  }
  </code></pre>
  
  <p>Event.h</p>
  
  <pre><code>#ifndef EVENT_H
  #define EVENT_H
  
  #define EVENT_STOP 0
  #define EVENT_START 1
  
  
  class Event {
  private:
  
  protected:
      double time;
      std::string label;
      int type; // EVENT_START OR EVENT_STOP
  
  public:
      std::string getLabel(); 
  
  };
  
  #endif
  </code></pre>
  
  <p>compile and error</p>
  
  <pre><code>g++ -c -Wall -pedantic correngine.cpp
  g++ -c -Wall -pedantic CSVManager.cpp
  g++ -c -Wall -pedantic ServerEvent.cpp 
  g++    -c -o UPSEvent.o UPSEvent.cpp
  g++ -c -Wall -pedantic CorrelationEngineManager.cpp
  g++ -c -Wall -pedantic Event.cpp
  Event.cpp:4: error: no ‘std::string Event::getLabel()’ member function declared in class ‘Event’
  make: *** [Event.o] Error 1
  </code></pre>