Jonathan Polley wrote:
> I just updated to the newest uiuc_menu.cpp and am still getting the
> compile problem, but far fewer instances. MSVC error is:
>
> c:\flightgear\src\fdm\uiucmodel\uiuc_menu.cpp(XXXX) : error C2106: '=' :
> left operand must be l-value
>
>
> on the following lines:
>
> 1454, 1506, 1558, 1927, 1979, 2031, 2300, 2352, 2404, 2614, 2666, 2718,
> 2770, 2822, 3020, 3072, 3124, 3176, 3228, 3438, 3490, 3542, 3594, 3646
It would be nice to see if the attached test program produces the
following output on all supported platforms(This would allow us to
improve the speed of the code dramattically by using memcpy instead of
for-loops):
0 1 2 3 4 5 6 7 8 9
Erik
#include <stdio.h>
#include <string.h>
int main () {
int a[2][2][5];
int b[2][5];
int q;
for (q=0; q < 10; q++) {
a[0][q/5][q%5] = q;
a[1][q/5][q%5] = q+100;
}
memcpy(b, a[0], sizeof(b));
for (q=0; q < 10; q++)
printf("%i\t", b[q/5][q%5]);
return 0;
}