系统环境与工具
- ubuntu 14.04 ×64
- Qt Creator 3.5.1 opensource
- Qt 5.5.1 GCC 64Bit
- unpv13e
编译unp源代码
代码包中的README
给出了详细步骤:
1. ./configure
2. cd lib
make
3. cd ../libfree
make
4. cd ../libroute
make
5. cd ../libxti
make
6. cd ../intro # build and test a basic client program
make daytimetcpcli
7. ./daytimetcpcli 127.0.0.1
其中步骤4
、5
对于我的系统环境而言是可以忽略的,另外在第3
步make
的过程中遇到了error
:
inet_ntop.c: In function ‘inet_ntop’:
inet_ntop.c:60:9: error: argument ‘size’ doesn’t match prototype
size_t size;
^
In file included from inet_ntop.c:27:0:
/usr/include/arpa/inet.h:64:20: error: prototype declaration
extern const char *inet_ntop