title: constant expression required
body: <pre><code> unsigned char rtc_time[6] = { pThis-&gt;hoursTens, pThis-&gt;hoursUnits, pThis-&gt;minutesTens, pThis-&gt;minutesUnits, pThis-&gt;secondsTens, pThis-&gt;secondsUnits };
  </code></pre>
  
  <p>Does not compile. I receieve  the error (6 times): <strong>constant expression required</strong> </p>
  
  <p>Each of the variables are declared as an unsigned char. I have tried casting to (const) with no luck. </p>
  
  <p>This is in MPLAB X IDE, C language, using Hi-Tech-PICC compiler v9.65PL1. </p>
  
  <p>What is the problem?</p>
  
  <p>It works when I define the variable as below, but I need to use the variables above.</p>
  
  <pre><code> unsigned char rtc_time[6] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6 };
  </code></pre>