‘close’ was not declared in this scope(转)

‘close’ was not declared in this scope

没有包含头文件 unistd.h 造成的。

加上'

#include <unistd.h>

原文地址:https://www.cnblogs.com/xihong2014/p/6616657.html