При попытки объявить нечто вроде:
class PThread {
...
static int Pthread_create(pthread_t*, const pthread_attr_t*, void*(*)(void*), void*);
};
получаю такое:
error: cannot declare member function ‘static int pix::PThread::Pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)’ to have static linkage
Компилирую командой:
g++ -fPIC -D_HAS_LINUX_ -D_DEBUG_ -c -o thread.o thread.cc
Вопрос простой и глупый: а посему так незя?