title: Prototype... does not match any in Class... (error). g++
body: <p>I am getting a very annoying error with my g++ compiler in Ubuntu.</p>
  
  <p>This is my Code.</p>
  
  <p><strong>Employee.h</strong></p>
  
  <pre class="lang-cpp prettyprint-override"><code>#ifndef Employee_h
  #define Employee_h
  
  #include&lt;string&gt;
  
  using namespace std;
  
  class Employee
  {
      protected:
      int employeeNumber;
      string firstName;
      string lastName;
      string address;
      string telephone;
      double salary;
      int generateEmployeeNumber();
  
      public:
      Employee();
      Employee(string fin, string lan, string add, string tel, double sal);
      void setEmployeeName(string fin, string lan);   //start of setters
      void setEmployeeAddress(string add);
      void setEmployeeTelephone(string tel);
      void setEmployeeSalary(double sal);
      string getEmployeeFirstName();          //start of getters
      string getEmployeeLastName();   
      string getEmployeeAddress();
      string getEmployeeTelephone();
      double getEmployeeSalary();
      int show();
  };
  #endif
  </code></pre>
  
  <p><strong>Employee.cpp</strong></p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include"Employee.h"
  #include&lt;iostream&gt;
  #include&lt;string&gt;
  
  using namespace std;
  
  //start of constructors
  Employee::Employee()
  {
  
  }
  
  Employee::Employee(string fin, string lan, string add, string tel, double sal)
  {
      firstName = fin;
      lastName = lan;
      address = add;
      telephone = tel;
      salary = sal;
  }
  //end of constructors
  
  //start of setters
  void Employee::setEmployeeName(string fin, string lan)
  {
      cout&lt;&lt;"Please enter the Employee's first name: ";
      cin&gt;&gt;fin;
      cout&lt;&lt;"Please enter the Employee's last name: ";
      cin&gt;&gt;lan;
  
      firstName = fin;
      lastName = lan;
  }
  
  void Employee::setEmployeeAddress(string add)
  {
      cout&lt;&lt;"Please enter the Employee's address: ";
      cin&gt;&gt;add;
      address = add;
  }
  
  void Employee::setEmployeeTelephone(string tel)
  {
      cout&lt;&lt;"Please enter the Employee's telephone number: ";
      cin&gt;&gt;tel;
      telephone = tel;
  }
  
  void Employee::setEmployeeSalary(double sal)
  {
      cout&lt;&lt;"Please enter the Employee's monthly salary: R";
      cin&gt;&gt;sal;
      salary = sal;
  }
  //end of setters
  
  //start of getters
  string Employee::getEmployeeFirstName()
  {
      return firstName;
  }
  
  string Employee::getEmployeeLastName()
  {
      return lastName;
  }
  
  string Employee::getEmployeeAddress()
  {
      return address;
  }
  
  string Employee::getEmployeeTelephone()
  {
      return telephone;
  }
  
  double Employee::getEmployeeSalary()
  {
      return salary;
  }
  //end of getters
  </code></pre>
  
  <p><strong>And this is my ERROR:</strong></p>
  
  <pre class="lang-cpp prettyprint-override"><code>Employee.cpp:31:6: error: prototype for ‘void Employee::setEmployeeName(std::string, std::string)’ does not match any in class ‘Employee’
  Employee.h:22:16: error: candidate is: void Employee::setEmployeeName()
  Employee.cpp:42:6: error: prototype for ‘void Employee::setEmployeeAddress(std::string)’ does not match any in class ‘Employee’
  Employee.h:23:7: error: candidate is: int Employee::setEmployeeAddress(std::string)
  Employee.cpp:49:6: error: prototype for ‘void Employee::setEmployeeTelephone(std::string)’ does not match any in class ‘Employee’
  Employee.h:24:7: error: candidate is: int Employee::setEmployeeTelephone(std::string)
  Employee.cpp:56:6: error: prototype for ‘void Employee::setEmployeeSalary(double)’ does not match any in class ‘Employee’
  Employee.h:25:10: error: candidate is: double Employee::setEmployeeSalary(std::string)
  </code></pre>
  
  <p>Can anyone spot what's wrong?</p>
  
  <p>Thank you.</p>
  
  <p><strong>Ok I found the problem.
  There was some sort of file name Employee.h.gwh in the same directory that I have no idea where that came from, I delted it and works now.
  Thanks for the by the way.</strong> </p>