title: C 'Undefined Reference to'
body: <p>I'm trying to add fat driver to cLK(bootloader for hd2) and getting error when compiling</p>
  
  <pre><code>aboot.o: In function `eval_sett_menu':
  aboot.c:867: undefined reference to `fs_init'
  aboot.c:870: undefined reference to `fs_load_file'
  aboot.c:871: undefined reference to `fs_stop'
  aboot.c:904: undefined reference to `fs_stop'
  </code></pre>
  
  <p>code from aboot.c</p>
  
  <pre><code>    fs_init();
      printf( "\n   fs_init() done!" );
      void *buf = NULL;
      fs_load_file("/LEOCLK.img", buf);
      fs_stop();
      ...
      fs_stop();
  </code></pre>
  
  <p>all fs_* in fs.h</p>
  
  <p>fs.h:</p>
  
  <pre><code>#ifndef FS_H_
  #define FS_H_
  
  void fs_init(void);
  long fs_read(const char *filename, void *buffer, unsigned long maxsize);
  int fs_write(const char *filename, void *buffer, unsigned long maxsize);
  
  #endif
  </code></pre>
  
  <p>help me please)</p>
  
  <p>fs.h of course included</p>
  
  <p>sorry for my bad englesh</p>