sco5.07下能不能用sem_init?

SystemArchitect 2005-12-02 07:54:38
在sco5.07下编译时出错:
# g++ -o t -lgthreads -lsuds test.cpp
WARNING: no SCO ELF identifying .note section in file 'libgthreads.so'
Undefined first referenced
symbol in file
sem_init(posix_sem *, int, unsigned int)/usr/tmp/ccMClGlE.o
sem_wait(posix_sem *) /usr/tmp/ccMClGlE.o
sem_post(posix_sem *) /usr/tmp/ccMClGlE.o
sem_destroy(posix_sem *) /usr/tmp/ccMClGlE.o
ERROR: Symbol referencing errors. No output written to t
collect2: ld returned 1 exit status

已经安装了FSUpthreads包

...全文
101 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
SystemArchitect 2005-12-05
  • 打赏
  • 举报
回复
没有吧,pthread库都可以用,为什么semaphore就不行呢
郁闷
hundlom 2005-12-05
  • 打赏
  • 举报
回复
这个是不可以的.
sco unix支持system V标准,并拥有源代码,它不支持posix标准。
而你现在用的是posix中的库函数。
SystemArchitect 2005-12-04
  • 打赏
  • 举报
回复
sco5.07下有没有实现posix的semaphore啊?

23,223

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧