title: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'stackEmpty'
body: <p>This code is for implementing generic stack functionality in C.</p>
  
  <pre><code>Code for stack.h
  -------------
  
      typedef struct{
      void *elements;
      int elementSize;
      int logofElementsLength;
      int allocatedLength;
  
  }stack;
  
  bool stackEmpty(const stack *s);
  </code></pre>
  
  <h2>code for implementation in Client.c</h2>
  
  <pre><code>bool stackEmpty(const stack *s)
  {return (s-&gt;logLength==0);
  }
  </code></pre>
  
  <h2>Error</h2>
  
  <pre><code>error: expected '=', ',', ';', 'asm' or '__attribute__' before 'stackEmpty'
  </code></pre>
  
  <h2>Comments</h2>
  
  <p>The code compiles otherwise and I only get an error on this line. Obviously the error must emanate from this line of code. I am using </p>
  
  <blockquote>
    <p><code>gcc -O0 -g3 -Wall -arch i386 -c -fmessage-length=0 -MMD -MP
    -MF"Client.d" -MT"Client.d" -o"Client.o" "../Client.c"</code></p>
  </blockquote>
  
  <p>to compile.</p>
  
  <p>I am running on MAC Snow Leopard OS. I have imported <code>stack.h</code> in my <code>Client.c</code> and all other code compiles and runs fine. Any help would be appreciated.</p>