title: Multiple definitions of a function, first defined here
body: <p>I'm working on a scanner/parser for a university project, and I've run into this error:</p>
  
  <blockquote>
    <p>stack.c 91: multiple definition of '[all functions in stack.c]' <br/>
    stack.c 91: first defined here</p>
  </blockquote>
  
  <p>For some reason that I can't seem to figure out the compiler seems to be telling me that I've defined the same function multiple times in the same place.</p>
  
  <p>I was given some skeleton code and a makefile to start off with so there must be some sort of incorrect communication between the files I wrote entirely myself (stack.c, stack.h) and the rest of the code.</p>
  
  <ul>
  <li>makefile: <a href="http://pastebin.com/0Tx1Wixg" rel="nofollow noreferrer">http://pastebin.com/0Tx1Wixg</a></li>
  <li>symtab.c: <a href="http://pastebin.com/M5gg0b3n" rel="nofollow noreferrer">http://pastebin.com/M5gg0b3n</a></li>
  <li>symtab.h: <a href="http://pastebin.com/NvkZdWTy" rel="nofollow noreferrer">http://pastebin.com/NvkZdWTy</a></li>
  <li>stack.h: <a href="http://pastebin.com/qT8fXEK0" rel="nofollow noreferrer">http://pastebin.com/qT8fXEK0</a></li>
  <li>stack.c: <a href="http://pastebin.com/FfPa06ys" rel="nofollow noreferrer">http://pastebin.com/FfPa06ys</a></li>
  </ul>
  
  <p>I've been moving around #includes and messing with the makefile for over an hour now and just running into more and more issues. How should this be set up?</p>
  
  <p><code>stack.c</code> and <code>stack.h</code> are small files I wrote to be used in <code>symtab.c</code> and <code>symtab.h</code>.</p>