title: A set of variables cannot be resolved
body: <p>I am having a problem when trying to use variables declared in another class. I can't figure out where is the problem. Can anyone please help? </p>
  
  <p>This is my header file:</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;iostream&gt;
  #include "HELO.h"
  
  using namespace std;
  
  #ifndef SMTPSERVER_H_INCLUDED
  #define SMTPSERVER_H_INCLUDED
  
  class SMTPServer
  {
      private: bool newMessage;
      private: bool newRec;
      private: bool newSender;
      private: bool newData;
  
      public: SMTPServer();
  
      void send(HELO h1);
      void OriginalState();
  
  
  };
  
  
  #endif // SMTPSERVER_H_INCLUDED
  </code></pre>
  
  <p>The following is my cpp class. When I build the program, it is showing the error: Symbol 'newData' could not be resolved. </p>
  
  <pre><code>#include "SMTPServer.h"
  #include "HELO.h"
  
  
  SMTPServer::SMTPServer()
  {
      newMessage = NULL;
      newRec = NULL;
      newSender = NULL;
      newData = NULL;
  }
  
  void send(HELO h1)
  {
  
  }
  
  void OriginalState()
  {
      newMessage = false;
      newRec = false;
      newSender = false;
      newData = false;
  }
  </code></pre>