vxworks socket通信程序编译时报找不到socket函数的错误

joomla25 2014-01-09 04:25:26
使用workbench创建的Vxworks653工程,简单的vxworks socket通信的程序,sockLib.h等头文件都写了,使用socket, bind等函数编译后出现下面的错误:
Sender-pm/Debug/Sender.pm(.text+0x1c8): In function `tNetRecv':
E:/windriver653/workspace/Sender/usrAppInit.c:75: undefined reference to `socket'
Sender-pm/Debug/Sender.pm(.text+0x25c):E:/windriver653/workspace/Sender/usrAppInit.c:87: undefined reference to `bind'
Sender-pm/Debug/Sender.pm(.text+0x2b0):E:/windriver653/workspace/Sender/usrAppInit.c:93: undefined reference to `listen'
Sender-pm/Debug/Sender.pm(.text+0x334):E:/windriver653/workspace/Sender/usrAppInit.c:102: undefined reference to `accept'
Sender-pm/Debug/Sender.pm(.text+0x39c):E:/windriver653/workspace/Sender/usrAppInit.c:109: undefined reference to `recv'
E:\windriver653\utilities-1.0\x86-win32\bin\make.exe: *** [Sender/Debug/Sender.sm] Error 1
Build Failed in Project 'Sender' (Process Exit Value was 2): 2014-01-09 15:55:02 (Elapsed Time: 00:01)


应该是那些函数在编译时没有找到,不知道怎么添加到工程里,让workbench可以编译时找到,sockLib应该是核心的函数库,应该能自动找到的,实在搞不定,求大家帮帮忙!小弟在此谢过了!
...全文
2260 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaohaoasd 2016-04-26
  • 打赏
  • 举报
回复
楼主,请问你最后解决了吗
志的世界 2014-08-01
  • 打赏
  • 举报
回复
我感觉是不是一些库你没有加上去 阿 ?
码农老李 2014-01-13
  • 打赏
  • 举报
回复
我觉得可能网络不能再partion里面用,你可以试试module OS编译一下

2,179

社区成员

发帖
与我相关
我的任务
社区描述
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
社区管理员
  • VxWorks开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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