G
Gary Wessle
I am getting
task.cpp:109: error: argument of type 'void (Spac_task:()' does not
match 'void* (*)(void*)'
when trying to execute the line
int thr_id = pthread_create(&p_thread, NULL, spc_optm, NULL);
where
void Spac_task::spc_optm(){/*...*/}
if I change it to
void* Spac_task::spc_optm(void*){/*...*/}
then I get
task.cpp:109: error: argument of type 'void* (Spac_task:(void*)'
does not match 'void* (*)(void*)'
I even tried
static void* (*) spc_optm(void*);
static void* (*) Spac_task::spc_optm(void*){/*...*/}
that did not cut it.
any guide?
thanks alot
task.cpp:109: error: argument of type 'void (Spac_task:()' does not
match 'void* (*)(void*)'
when trying to execute the line
int thr_id = pthread_create(&p_thread, NULL, spc_optm, NULL);
where
void Spac_task::spc_optm(){/*...*/}
if I change it to
void* Spac_task::spc_optm(void*){/*...*/}
then I get
task.cpp:109: error: argument of type 'void* (Spac_task:(void*)'
does not match 'void* (*)(void*)'
I even tried
static void* (*) spc_optm(void*);
static void* (*) Spac_task::spc_optm(void*){/*...*/}
that did not cut it.
any guide?
thanks alot