title: file format not recognized; treating as linker script
body: <p>I am trying to run the C files downloaded from <a href="http://www.dcs.bbk.ac.uk/~dell/publications/dellzhang_kdd2006/ksg_v2.tar.gz" rel="nofollow noreferrer">here</a> as follows :</p>
  
  <pre><code>gcc main.c docs_file.txt ksg_file.txt
  </code></pre>
  
  <p>However, I receive the following error:</p>
  
  <pre><code>/usr/bin/ld:docs_file.txt: file format not recognized; treating as linker script
  /usr/bin/ld:docs_file.txt:2: syntax error
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I am not sure what the problem is. </p>
  
  <p><strong>Update 1:</strong></p>
  
  <p>I get the following errors while compiling:</p>
  
  <pre><code>gcc main.c -o ksg
  
  
  /tmp/cc4H83rG.o: In function `main':
  main.c:(.text+0xa5): undefined reference to `stree_new_tree'
  main.c:(.text+0xe0): undefined reference to `stree_add_string'
  main.c:(.text+0x2a7): undefined reference to `stree_match'
  main.c:(.text+0x38f): undefined reference to `int_stree_set_idents'
  main.c:(.text+0x422): undefined reference to `int_stree_get_parent'
  main.c:(.text+0x47b): undefined reference to `int_stree_get_suffix_link'
  /tmp/cc4H83rG.o: In function `count_freq':
  main.c:(.text+0x96d): undefined reference to `int_stree_set_idents'
  main.c:(.text+0x9a8): undefined reference to `stree_get_num_leaves'
  main.c:(.text+0xa91): undefined reference to `int_stree_set_idents'
  /tmp/cc4H83rG.o: In function `select_feature':
  main.c:(.text+0xb34): undefined reference to `int_stree_set_idents'
  main.c:(.text+0xbe7): undefined reference to `stree_get_num_children'
  main.c:(.text+0xc47): undefined reference to `int_stree_get_parent'
  main.c:(.text+0xc67): undefined reference to `int_stree_set_idents'
  main.c:(.text+0xc94): undefined reference to `int_stree_get_parent'
  main.c:(.text+0xdbb): undefined reference to `int_stree_get_suffix_link'
  main.c:(.text+0xddb): undefined reference to `int_stree_set_idents'
  main.c:(.text+0xe08): undefined reference to `int_stree_get_suffix_link'
  collect2: ld returned 1 exit status
  </code></pre>