|
|
От: | Stov | |
| Дата: | 19.09.03 08:12 | ||
| Оценка: | |||
#include <pthread.h>
void* f( void* )
{
int i = 1;
return NULL;
}
int main()
{
pthread_t p;
pthread_create( &p, NULL, f, NULL );
return 1;
}g++ main.cpp -lpthread
g++ main.cpp -lpthread -lstdc++ -static
undefined reference to "__syscall_error" in \usr\lib\..\..\libpthread.a ....
undefined reference to "__errno" in \usr\lib\..\..\libpthread.a ....
...