<div dir="ltr"><div><div><div><div>I'm building an external where I want to create a two dimensional array. I'm following <a href="http://www.tutorialspoint.com/cprogramming/c_multi_dimensional_arrays.htm">this</a> example which works well with the attached test code, but creates an error when I try to compile my external.<br>
</div>The external's code where the array is being declared and initialized is this:<br>float x_iem_coeff[5][2] = {<br> {0.045535, 1.0277},<br> {0.161621, 1.2569},<br> {0.393858, 1.96655},<br> {1.13986, 4.51667},<br>
{6.36341, 22.7468}<br> };<br><br></div>which is in the object structure. The error I get is:<br>overDrive~.c:35:25: error: expected ';' at end of declaration list<br> float x_iem_coeff[5][2] = {<br>
^<br> ;<br><br></div>I've tried to declare the array in the object structure and initialize it in the new function, but I still got the same error.<br></div>
Any tips?<br></div>