title: Unresolved External Symbol in C
body: <p>The Unresolved external symbol error is preventing the compilation of my code. It specifically is mentioning two functions being called in <code>main</code>. The functions are a part of a switch I am trying to create and it is still under construction. If anyone has any suggestions for how I can fix the bug or improve my code please let me know and thank you in advance. FYI- I already searched for similar questions and they are not specific to my problem... </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  //This is a macro intended for use with the emplyName array.
  #define SIZE 20 
  
  //This struct has all the varibles that I will be using in my functions
  typedef struct person
  {
      char* emplyName[5][SIZE];
      float emplyHours[5];
      float emplyRate[5];
      float emplyGross[5];
      float emplyBase[5];
      float emplyOvrt[5];
      float emplyTax[5];
      float emplyNet[5];
      float emplyTotal[5];
  }input;
  
  void menu(void);
  void employeeInfo(input* emply);
  void editEmployees(input* emply);
  void print(input* emply);
  
  int main(void)
  {
      struct person *payroll={""};
      int choice = 0;
      menu();
      scanf_s("%c", &amp;choice);
      switch (choice){
      case '1':
          employeeInfo(payroll);
          break;
      case '2':
          editEmployees(payroll);
          break;
      case '3':
          print(payroll);
          break;
      case '4':
          break;
      default:
          printf("Invalid entry\n");
      }
      system("pause");
  }
  
  void employeeInfo(input *emply)
  {
      int i=0;
      do {
          printf("Enter employee name.\n");
          scanf_s("%s", &amp;emply-&gt;emplyName[i]);
          printf("Enter employee hours.\n");
          scanf_s("%f", &amp;emply-&gt;emplyHours[i]);
          printf("Enter Hourly rate.\n");
          scanf_s("%f", &amp;emply-&gt;emplyRate[i]);
      } while (++i &lt;= 5);
  
      void calculations(input *emply);/*Write a method that calculates the gross, base and overtime pay, pass by reference.*/
  {
      int i;
      i = 0;
      for (i = 0; i &lt; 5; i++){
          if (emply-&gt;emplyHours[i] &gt; 40) {
              emply-&gt;emplyOvrt[i] = (emply-&gt;emplyHours[i] - 40) * (emply-&gt;emplyRate[i] * 1.5);
          }
          emply-&gt;emplyGross[i] = (((emply-&gt;emplyHours[i])*(emply-&gt;emplyRate[i])) + emply-&gt;emplyOvrt[i]);
          emply-&gt;emplyBase[i] = (emply-&gt;emplyGross[i]) - (emply-&gt;emplyOvrt[i]);
          emply-&gt;emplyTax[i] = ((emply-&gt;emplyGross[i])*.2);
          emply-&gt;emplyNet[i] = (emply-&gt;emplyGross[i]) - (emply-&gt;emplyTax[i]);
          emply-&gt;emplyTotal[0] += emply-&gt;emplyGross[i];
      }
  
  
  }
  
  
  void print(input *emply);
  {
      int i;
      for (i = 0; i &lt; 5; i++)
      {
  
  
          printf("Employee Name:%s\n", emply-&gt;emplyName[i]);
          printf("Hours Worked:%.2f\n ", emply-&gt;emplyHours[i]);
          printf("Hourly Rate:%.2f\n", emply-&gt;emplyRate[i]);
          printf("Gross Pay:%.2f\n", emply-&gt;emplyGross[i]);
          printf("Base Pay:%.2f\n", emply-&gt;emplyBase[i]);
          printf("Overtime Pay:%.2f\n", emply-&gt;emplyOvrt[i]);
          printf("Taxes Paid:%.2f\n", emply-&gt;emplyTax[i]);
          printf("Net Pay:%.2f\n", emply-&gt;emplyNet[i]);
      }
      printf("Total paid to all employees : %.2f\n", emply-&gt;emplyTotal[0]);
  }
  void editEmployees(input*emply);
  {
      char edit;
      int i;
      printf("which employee would you like to edit?\n");
      for (i = 0; i &lt; 5; i++){
          printf("%d.%s", i + 1, emply-&gt;emplyName[i]);
      }
      scanf_s("%c", &amp;edit);
      switch (edit){
      case '1':
          printf("Enter employee name.\n");
          scanf_s("%s", &amp;emply-&gt;emplyName[0]);
          printf("Enter employee hours.\n");
          scanf_s("%f", &amp;emply-&gt;emplyHours[0]);
          printf("Enter Hourly rate.\n");
          scanf_s("%f", &amp;emply-&gt;emplyRate[0]);
      }
  }
  
  
  
  }
  
  void menu(void){
      printf("Main Menu\n");
      printf("1. Add Employee\n");
      printf("2. Edit Employee\n");
      printf("3. Print Employee\n");
      printf("4. Print All EMployees\n");
      printf("0. exit\n");
  
  }
  </code></pre>