![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
yankehu
喜欢嵌入式的linux前进者
展开
-
undefined reference to 'pthread_create'问题解决
在学习网络编程的时候遇到如下问题,因为我调用了thread_create(),然后编译的时候出现下面错误。 undefined reference to 'pthread_create' undefined reference to 'pthread_join' 问题原因: pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthread.a,所以在转载 2013-12-31 10:25:33 · 639 阅读 · 0 评论 -
未知的类型名‘ulong_t’解决
今天在编写一个用gethostbyname来解析域名的时候有这么个定义 ulong_t addr; 编译的时候出现了, 错误: 未知的类型名‘ulong_t’这个错误; 查了半天没找到,后来把改成ulong 就能通过编译了。 再补充一点,在linux下编程序时可能会遇到类似: 警告: 隐式声明与内建函数‘memcpy’不兼容 [默认启用] 的这种编译错误。这是没有包含相应的头文件,这个原创 2014-01-01 18:28:09 · 3132 阅读 · 0 评论