编写了.h和.c文件,准备生成SO文件报错如下:
Test.h
struct DETECTION_STRUCT
{
int nLeft;
int nRight;
};
int testFromBuffer(int imgSize, DETECTION_STRUCT *candi);
-----------------------------------------
Test.c
int testFromBuffer(int imgSize,DETECTION_STRUCT *candi){
.......
return 0;
}
In file included from Test.c:5:
Test.h:8: error: expected declaration specifiers or ‘...’ before ‘DETECTION_STRUCT’
Test.c:20: error: expected declaration specifiers or ‘...’ before ‘DETECTION_STRUCT’