Is it declared as a static function? Something like "static int
bd::analisis_ultimo(void* arg)" ? I assume it would need to be static
just like all the other thread function parameters or callback
parameters in various APIs.
Esteban Zeller wrote:
I'v got the next problem:
string cola = "SELECT * FROM ultimo;";
char zErrMsg;
int ret = sqlite3_exec( base_datos, cola.c_str(), (bd::analisis_ultimo), 0,
&zErrMsg );
....
the compiler tell me this:
/home/Programas/preguntas/src/bd.cpp:151: error: no matches converting
function `analisis_ultimo' to type `int (*)(void*, int, char**, char**)'
the functions uses the same prototipe of the example but it's inside of a
class