ubuntu14.04下unix网络编程 环境的配置

时间:2021-10-09 16:42:29

在ubuntu下

首先:在unpv13e文件加下

./configure

cd lib

make

cd ../libfree

make

cd ../liggai

make

cd ..

vim lib/nup.h

 // 改动 #include "../config.h" 为 #include "config.h"
/ 拷贝头文件
sudo cp config.h /usr/local/include
sudo cp lib/unp.h /usr/local/include // 拷贝库文件
sudo cp libunp.a /usr/local/lib

gcc xxxx -lunp (末尾)