C++ thread conversion error
First : I'm from Colombia so the error is in spanish. This seems the
fastest place to get an answer...
I've been trying to make a simple program that creates threads and saves
the information in a vector but when I build the code the next error
appears:
...Lanzador.cpp|19|error: no se puede convertir 'void* (Hilo::)(void)' a
'void* ()(void)' para el argumento '3' para 'int
pthread_create(pthread_t*, const pthread_attr_t*, void* ()(void), void*)'|
I have three files: the header for Hilos that says:
#ifndef HILO_H
#define HILO_H
using namespace std;
class Hilo
{
public:
Hilo();
virtual ~Hilo();
void addHilo(int);
void* ImprimirHilo(void*);
protected:
private:
};
No comments:
Post a Comment