主题:linux不支持多线程吗?
sysconf(_SC_PTHREADS) == -1
#ifdef _POSIX_PTHREADS//不成功
[root@localhost include]# uname -a
Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
程序报错:
/tmp/cciJ76zn.o(.text+0x7c): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
是不是这个版本的linux不支持多线程阿?
#ifdef _POSIX_PTHREADS//不成功
[root@localhost include]# uname -a
Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
程序报错:
/tmp/cciJ76zn.o(.text+0x7c): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
是不是这个版本的linux不支持多线程阿?