title: Compiler errors: undefined reference to `print'
body: <p>In my code I keep on getting these errors when trying to compile</p>
  
  <blockquote>
    <p>/tmp/ccshIakV.o: In function `main':</p>
    
    <p>project2.c:(.text+0x370): undefined reference to `print'</p>
    
    <p>collect2: error: ld returned 1 exit status</p>
  </blockquote>
  
  <p>And this is my code</p>
  
  <pre><code>int main(void)
  {
  double a = 0;
  double b = 0;
  double c = 0;
  double d = 0;
  double e = 0;
  double f = 0;
  double g = 0;
  double h = 0;
  double i = 0;
  
  char command = '\0';
  
  printf("\n      Welcome\n");
  printf("     Aquapodz Stress Analysis Program\n");
  printf("    ==================================\n");
  while (command != 'x');
      {
  printf("\n\n(a), (b), or (c), enter trial data for vendor.\n(f)ail-rate,     (m)ean stress, (s)ummary, e(x)it\n");
  printf("Please enter a command");
  scanf("%c", &amp;command);
  
  if (command == 'a')
  {
  printf("Please enter stress values (GPa) for this trial.");
  scanf("%lf", &amp;a);
  scanf("%lf", &amp;b);
  scanf("%lf", &amp;c);
  }
  else if (command == 'b')
  {
  printf("Please enter stress values (GPa) for this trial.");
  scanf("%lf", &amp;d);
  scanf("%lf", &amp;e);
  scanf("%lf", &amp;f);
  }
  else if (command == 'c')
  {
  printf("Please enter stress values (GPa) for this trial.");
  scanf("%lf", &amp;g);
  scanf("%lf", &amp;h);
  scanf("%lf", &amp;i);
  }
  else if (command == 'f')
  {
  
  printf("Average failure rate:\nAzuview:%f\nBublon:%f\nCryztal:%f\n",        a+b+c, d+e+f, g+h+i);
  }
  else if (command == 'm')
  {
  printf("Average mean stress:\nAzuview:%f\nBublon:%f\nCryztal:%f\n",     a+b+c/3, d+e+f/3, g+h+i/3);
  }
  else if (command == 's')
  {
  print("Total (pass / fail) so far:\nAzuview:%f(%f/0)\nBublon:%f(%f/0)    \nCryztal:%f(%f/0)\n", a+b+c, a+b+c, d+e+f, d+e+f, g+h+i, g+h+i);
  }
  else if (command == 'x')
  {
  
  }
  else
  {
  printf("Invalid Command! Please Try Again :)");
  }
  
  }
  printf("Goodbye, Please Come Again!");
    return 0;
  }
  </code></pre>
  
  <p>I have never encountered these errors before.</p>