Code: Select all
wxArrayLong tiersReportMonthCredit[13];
for (int i = 0; i < 13; i++)
{
tiersReportMonthCredit[i] = 0;
}
It compiled with no problems in Ubuntu 16.04, but in Ubuntu 18.04 the compilation fails with the following messages:
error: no match for 'operator =' (operand types are 'wxArrayLong and 'long int')
*** WX_DEFINE_USER_EXPORTED_ARRAY_LONG(long,wxArrayLong, class WXDLLIMPEXP_BASE);
*** WX_DEFINE_USER_EXPORTED_ARRAY_LONG(long,wxArrayLong, class WXDLLIMPEXP_BASE);
Modifying the code as follows makes no difference.
Code: Select all
long z = 0;
for (int i = 0; i < 13; i++)
{
tiersReportMonthCredit[i] = z;
}