title: C++ Undefined references?
body: <p>So this is a segment of my program, i am having trouble calling the the functions and I really need some help. It's basically to choose either function and enter data and 
      later print that data.  What am doing wrong ?please help, I keep getting </p>
  
  <blockquote>
    <p>"[Linker] reference to <code>Customer_Record()'" , [Linker error] undefined reference to</code>               <code>Car_Record()</code>'  and "ld returned 1 exit status"</p>
  </blockquote>
  
  <pre><code> #include &lt;stdio.h&gt;
   #include &lt;string.h&gt;  
   #include &lt;stdlib.h&gt;
   #include &lt;windows.h&gt;  
   #include &lt;conio.h&gt;
  
  void Customer_Record(), Car_Record();
  int num;
  
  struct Customer {
      char customer_ID[20];
      int license;
      char address[20];
      int phone;
      char email[20];
  } cust;
  
  struct car {
  
      int regno[20];
      char model[20];
      char colour[10];
  } car;
  
  
  main() {
      printf("               Enter 1 to go to Customer Record \n\n");
      printf("               Enter 2 to go to Car Record \n\n");
      scanf("%d", &amp;num);
      if (num = 1) {
          Customer_Record();
      } else if (num = 2) {
          Car_Record();
      } else {
          printf("Invalid Number");
      }
  
      system("cls");
  
      void Customer_Record(); {
          printf("********CUSTOMER RECORD********"); /* accepts into*/
          printf("\nEnter the name of the customer ");
          scanf("%s", &amp;cust.customer_ID);
          printf("Enter the license number of the customer ");
          scanf("%d", &amp;cust.license);
          printf("Enter the address of the customer ");
          scanf("%s", &amp;cust.address);
          printf("Enter the cell phone number of the customer ");
          scanf("%d", &amp;cust.phone);
          printf("Enter the email address of the customer ");
          scanf("%s", &amp;cust.email);
      }
  
      void Car_Record(); {
          printf("********CAR RECORD********");
          printf("\nEnter the car's registration number ");
          scanf("%d", &amp;car.regno);
          printf("Enter the car's model ");
          scanf("%s", &amp;car.model);
          printf("Enter the colour of the car ");
          scanf("%s", &amp;car.colour);
      }
      getchar();
      getchar();
  }
  </code></pre>