错误代码如下:
/tmp/ccb9gvom.o: In function `thr_fn‘: barrier.c:(.text+0x6e): undefined reference to `heapsort‘ collect2: ld 返回 1 make[1]: *** [barrier] 错误 1
需要libbsd这个支持
wget http://elrepo.reloumirrors.net/testing/el6/x86_64/RPMS/libbsd-0.4.2-1.el6.elrepo.x86_64.rpm wget http://elrepo.reloumirrors.net/testing/el6/x86_64/RPMS/libbsd-devel-0.4.2-1.el6.elrepo.x86_64.rpm rpm -ivh libbsd-0.4.2-1.el6.elrepo.x86_64.rpm rpm -ivh libbsd-devel-0.4.2-1.el6.elrepo.x86_64.rpm
上面的rpm顺序不能变
然后在apue中make就ok了
时间: 2024-10-06 07:03:47