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