title: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
body: <p>An error occurred when i uploaded this code to Arduino Atmega2560. This is a libary file which i have created for the .c files in my program. </p>
  
  <p>The error is:<br>
  <code>herkulex.c:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token</code></p>
  
  <p>The word 'class' is highlighted when the error appears, which is in the file (code shown below)</p>
  
  <pre><code>#ifndef herkulex_lib
  #define herkulex_lib
  
  #include &lt;Arduino.h&gt;
  #include &lt;Wire.h&gt; 
  #include&lt;inttypes.h&gt; 
  
  class herkulex
  {
    public: 
      herkulex();
      void hklx_Init(unsigned long ulBaudRate);
      void hklx_SendPacket(DrsPacket stPacket);
      unsigned char hklx_ucReceivePacket(DrsPacket *pstPacket);
      void hklx_RemoveInvalidData(void);
  
  //no private  
  };
  
  #endif /* HERKULEX_H_ */
  </code></pre>
  
  <p>May I know what's wrong with this code? Thanks! </p>