Im doing a send sms program, but when im creating a connection with server in a thread im getting an error.

```
g++ -L/usr/lib/i386-linux-gnu -o main Socket.cpp ServerSocket.cpp modemSMS_w.cpp main.cpp Config.cpp -lpthread -lserial -lxml2 -lmysqlclient
modemSMS_w.cpp: In member function ‘void modem::enviasms()’:
modemSMS_w.cpp:96:77: error: cannot convert ‘void* (modem::*)(void*)’ to ‘void* (*)(void*)’ for argument ‘3’ to ‘int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’

```

The program:

```
#include "modemSMS_w.hpp"
#define CTRL_C "\x1A"

using namespace LibSerial;
using namespace std;

modem::modem()
{
}

void *modem::func_servidor(void *ptr)
{

ServerSocket server(30001);

        try {
                ServerSocket new_sock;
                while(1)
                {
                        server.accept(new_sock);
                        cout << "Conexao aceita" << endl;
                }
        }
        catch (SocketException& e) {
                cout << "Erro: Criando Servidor" << endl;
        }

}

int modem::setSerial() {
.....
....
...
}

void modem::enviasms(){

  pthread_t thread_servidor;
  pthread_cond_t cv;

  const int PORT_MON = 30000;
  string serialPort = "/dev/ttyS0";

  int argc;
  int ret;
  char **argv;

    cout << "\n------------------------\n  MODEM GPRS \n------------------------" << endl;
    string mensagem ="Conversao";
    mensagem.c_str();

    ret = pthread_cond_init(&cv, NULL);
    bool envia = true;
    envia = true;
    if (ret != 0)
    {
            cout << "Erro na criação do evento. Por favor reeinicie o programa." << endl;
    }

    //ERROR IN THIS LINE
    pthread_create(&thread_servidor, NULL,&modem::func_servidor, (void* ) true );

    Config config;
    SerialStream ssStream;
    setSerial();

....
...
}

```

Sorry, in dont know almost nothing creating thread in C++.Already tried to solve this out, but with no sucess.