Есть C++ класс, в нем функция
void getData(int uniqP[][3], int allP[0][3])
при компиляции выдает ошибку
/usr/include/c++/4.1.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one depre cated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
scan02v04_pl_3113.xs: In function ‘void XS_main_set_data(PerlInterpreter*, CV*)’:
scan02v04_pl_3113.xs:89: error: ‘set_data’ was not declared in this scope
make: *** [scan02v04_pl_3113.o] Error 1
А если просто взять и заменить функцию на такое
void getData(int uniqP, allP)
то есть не использовать массив в качестве параметра, то все компилируется тихо без warning-а и ошибки.
В чем дело? Чем ему не нравится массив в параметре?