'func': function call missing argument list; use '&func' to create a pointer to member

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
C_TreadRecognize.cpp

C_TreadRecognize::C_TreadRecognize()
{
bool result = FALSE;
result = (unsigned long)(-1) == sys_create_thread(recognize_thread, 0 /*Normal*/) ? FALSE : TRUE;
offset = 0;
pictureLength = 0;
}
C_TreadRecognize::~C_TreadRecognize()
{ }
void C_TreadRecognize::storeData(unsigned char status, unsigned short src_addr, unsigned char fblock_id, unsigned char inst_id, unsigned short func_id, unsigned char op_type, unsigned short data_len, unsigned char *pdata)
{

....


}
void C_TreadRecognize::recognize_thread()
{
unsigned short data_len;
while(true)
{
if( offset >= pictureLength)

}
....


void C_TreadRecognize::recognize(int width, int height, int bpp, char* data)
{
...
}

{



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
C_TreadRecognize.h

class C_TreadRecognize
{
public:
C_TreadRecognize();
virtual ~C_TreadRecognize();

void storeData(unsigned char status, unsigned short src_addr, unsigned char fblock_id, unsigned char inst_id, unsigned short func_id, unsigned char op_type, unsigned short data_len, unsigned char *pdata);

void recognize_thread();

void recognize(int width, int height, int bpp, char* data);
private:
unsigned char* rcvFrame;
int offset;
int pictureLength;
char* rcvImg;
int width, height, bpp;
};
#endif /* C_TREADRECOGNIZE_H_ */






The ERROR:'func': function call missing argument list; use '&func' to create a pointer to member
HELP!!!

recognize_thread() should be static.

You really should post the message from the compiler verbatim, indicating the line of code that the compiler is referencing. If you don't do this, we generally are unable to help you.
Thanks
I managed to habs
Topic archived. No new replies allowed.