在cygwin下我按照linux中安装opencv的方法安装opencv,遇到了如下问题: 后来搜索得到添加头文件#include <unistd.h> 是正解 (来自http://bbs.csdn.net/topics/360258668