UNIX网络编程卷2源码编译错误
来源:互联网 发布:网络小额贷款牌照 编辑:程序博客网 时间:2024/05/21 23:32
UNIX网络编程卷2源码编译错误
源码下载地址:http://www.ituring.com.cn/book/156
系统:Ubuntu 14.04
解压源码,按照README的说法执行:
./configurecd libmake
错误如下:
In file included from unpipc.h:7:0, from mainpipe.c:1:../config.h:56:17: error: duplicate ‘unsigned’ #define uint8_t unsigned char /* <sys/types.h> */ ^../config.h:56:26: error: two or more data types in declaration specifiers #define uint8_t unsigned char /* <sys/types.h> */ ^../config.h:57:18: error: duplicate ‘unsigned’ #define uint16_t unsigned short /* <sys/types.h> */ ^../config.h:57:27: error: duplicate ‘short’ #define uint16_t unsigned short /* <sys/types.h> */ ^../config.h:58:18: error: duplicate ‘unsigned’ #define uint32_t unsigned int /* <sys/types.h> */ ^../config.h:58:27: error: two or more data types in declaration specifiers #define uint32_t unsigned int /* <sys/types.h> */
解决办法:
直接到../config.h
文件里面,注释掉报错的几行:
/* Define the following to the appropriate datatype, if necessary *//* #undef int8_t */ /* <sys/types.h> *//* #undef int16_t */ /* <sys/types.h> *//* #undef int32_t */ /* <sys/types.h> *//************下面三行注释掉××××××××××××××××××///#define uint8_t unsigned char /* <sys/types.h> *///#define uint16_t unsigned short /* <sys/types.h> *///#define uint32_t unsigned int /* <sys/types.h> *//******************************************//* #undef size_t */ /* <sys/types.h> *//* #undef ssize_t */ /* <sys/types.h> */
2 0
- UNIX网络编程卷2源码编译错误
- UNP Unix网络编程卷2源码编译问题
- unix网络编程卷1:套接字联网 源码编译
- Unix网络编程(卷2)源码编译报错解决
- 《网络编程》关于 UNIX网络编程 卷1 的 unp.h 和源码编译问题
- 《网络编程》关于 UNIX网络编程 卷1 的 unp.h 和源码编译问题
- 《网络编程》关于 UNIX网络编程 卷1 的 unp.h 和源码编译问题
- unix网络编程(卷一)--安装源码
- 《unix网络编程》源码编译
- Unix网络编程(卷二)源码编译报错解决
- Unix网络编程(卷二)unpv 源码下载及编译报错解决
- Unix网络编程(卷二)源码编译报错解决 .
- Unix网络编程(卷二)源码编译报错解决
- Unix网络编程(卷二)源码编译报错解决
- UNIX网络编程 UNP 卷2 第一章
- UNIX网络编程 卷2 源代码使用
- UNIX网络编程 卷2 源代码使用
- 《UNIX 网络编程 卷2》读书笔记
- angular好用的插件集合和极品网站showcase.ngnice.com
- AD9
- 《设计模式解析》读书笔记之Bridge Pattern(桥接模式)
- 文章标题
- 二分查找
- UNIX网络编程卷2源码编译错误
- hud1233还是畅通工程 最小生成树 Kruskal算法
- PHP 线程,进程、并发、并行 的理解
- Light OJ 1049 Farthest Nodes in a Tree【树的直径】
- Java连接并使用Memcached
- info.plist网络添加键值dui
- AUI中的tapmode属性详解
- URL地址中汉字的编码转换
- 静态成员变量