求助:无法解析的外部符号 _errno 求解决方案

dengchangwen11 2018-08-05 05:39:23
在VS2008编译
我再编译程序的时候,出现了一些错误,
1>eXosip2.lib(udp.obj) : error LNK2019: 无法解析的外部符号 _errno,该符号在函数 _eXosip_read_message 中被引用
1>eXosip2.lib(inet_ntop.obj) : error LNK2001: 无法解析的外部符号 _errno
1>ms2.lib(winsnd.obj) : error LNK2001: 无法解析的外部符号 _errno

尝试了各种方法都没解决。
比如: extern "C"
{
int errno;
}无效


想请各位高手帮忙解决、
...全文
440 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zgl7903 2018-08-06
  • 打赏
  • 举报
回复
#include <stdlib.h> ?
代码中 errno 是怎么定义的? 或者怎么使用的?
赵4老师 2018-08-06
  • 打赏
  • 举报
回复
File: "C:\Program Files\Microsoft Visual Studio 10.0\VC\include\errno.h" 2 occurrences found on 2 lines
31: _CRTIMP extern int * __cdecl _errno(void);
32: #define errno (*_errno())
File: "C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stddef.h" 2 occurrences found on 2 lines
47: _CRTIMP extern int * __cdecl _errno(void);
48: #define errno (*_errno())
File: "C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdlib.h" 2 occurrences found on 2 lines
249: _CRTIMP extern int * __cdecl _errno(void);
250: #define errno (*_errno())
dengchangwen11 2018-08-05
  • 打赏
  • 举报
回复
求助高手帮解决下。找了好久,没解决方案。、

15,473

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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