title: Code Blocks: Undefined reference to myFct
body: <p>main.c</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include "functions.h"
  
  int main()
  {
  myFct();
  return 0;
  }
  </code></pre>
  
  <p>functions.h</p>
  
  <pre><code>#ifndef FUNCTIONS_H_INCLUDED
  #define FUNCTIONS_H_INCLUDED
  #include &lt;stdio.h&gt;
  
  extern void myFct(void);
  
  #endif // FUNCTIONS_H_INCLUDED
  </code></pre>
  
  <p>functions.c</p>
  
  <pre><code>#include "functions.h"
  
  void myFct(void)
  {
  printf ("helloFCT");
  }
  </code></pre>
  
  <p>While compiling this project i have this error "undefined reference to myFct" </p>
  
  <p>I'am using Code::Blocks13.12 and windows 8</p>
  
  <p>Thanks in advance </p>