编译错误,望指正。/tmp/ccjtB3uJ.o: In function `thread_filter2':

stone612 2003-10-16 04:27:51
linux下多线程程序,编译时出现错误如下,请帮忙解决:
/tmp/ccjtB3uJ.o: In function `thread_filter2':
/tmp/ccjtB3uJ.o(.text+0xc63): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0xd6e): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0xdb2): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0xe23): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0xec4): undefined reference to `itoa'
/tmp/ccjtB3uJ.o(.text+0xf06): undefined reference to `itoa'
/tmp/ccjtB3uJ.o(.text+0xf77): undefined reference to `itoa'
/tmp/ccjtB3uJ.o(.text+0x106b): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0x10dd): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0x1121): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0x1165): undefined reference to `_itoa'
/tmp/ccjtB3uJ.o(.text+0x11a9): undefined reference to `_itoa'
collect2: ld returned 1 exit status
...全文
69 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hs_guanqi 2003-10-16
  • 打赏
  • 举报
回复
就是说没有itoa这个函数,
实际上有atoi,itoa应该有sprintf之类的函数来实现
zeng_xiangyang 2003-10-16
  • 打赏
  • 举报
回复
编译时要加参数 -lpthread

23,110

社区成员

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

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