title: undefined reference to function error in c
body: <pre><code>#include &lt;stdio.h&gt;
  
  
  int singleFib(int x,int a,int b);
  int multiFib(int x);
  
  
  void main(){
  int n,i;
  printf("How much?\n");
  scanf("%d",&amp;n);
  
  for(i=0;i&lt;n;i++){
      printf("%5d. number:   %d   -  %d \n",i+1,multiFib(i),singleFib(i,1,1));
  
  
  }
  
  getch();
  return 0;
  
  }
  
  int multiFib(int x){
  
  if (x&lt;2){
      return 1;
  }
  else{
      return multiFib(x-2)+multiFib(x-1);
  }
  
  
  int singleFib(int x,int a,int b){
  
  if (x&lt;2){
      return 1;
  }
  else{
  
      return singleFib( x-1, b,(a+b));
  }
  
  }
  }
  </code></pre>
  
  <p>The error is in</p>
  
  <pre><code>singleFib(i,1,1) in `printf`
  </code></pre>
  
  <p>Whyis that problem?how can i solve that problem? i am using codeblocks</p>
  
  <p>Codeblocks\Fiberonacci\main.c|14|undefined reference to `singleFib'|
  The error is that.how can i solve?</p>