C++ 为什么C++;“编译器查找”;c:\ProgramFiles\gnu emacs\include";是否包含文件?

C++ 为什么C++;“编译器查找”;c:\ProgramFiles\gnu emacs\include";是否包含文件?,c++,compiler-errors,cmake,libcurl,include-path,C++,Compiler Errors,Cmake,Libcurl,Include Path,我正试图从Windows10中的(zip文件)编译curl,以获得curl库(这反过来又是构建所需要的)。然而,当我使用CMake生成Visual Studio项目,并尝试使用“默认本机编译器”(根据CMake)编译ALL_BUILD项目时,我遇到了很多错误,其中第一个错误是 c:\program files\gnu emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No su

我正试图从Windows10中的(zip文件)编译curl,以获得curl库(这反过来又是构建所需要的)。然而,当我使用CMake生成Visual Studio项目,并尝试使用“默认本机编译器”(根据CMake)编译
ALL_BUILD
项目时,我遇到了很多错误,其中第一个错误是

c:\program files\gnu emacs\include\zconf.h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
为什么编译器读取
c:\program files\gnu emacs\include\zconf.h

对我来说,它在
c:\program files\gnu emacs\include
中搜索include文件没有任何意义,因为编译应该独立于是否安装了emacs(如果没有安装,这个文件就不存在)。我已经搜索了所有环境变量,以确定是否有任何环境变量可以告诉编译器在
c:\program files\gnu emacs\include
中查找include文件,但术语
emacs
存在的唯一环境变量(不区分大小写的搜索)是
PATH
ORIGINAL\u PATH
(我不知道它是干什么的)


可能是CMake项目中的某个内容使编译器搜索此文件夹吗?

CMake尝试定位您的本地zlib安装路径。可能存在不同的位置,有关详细信息,请查看CMake安装路径中的某个位置。我的本地版本将在
$zlib\u ROOT
或某个窗口中搜索s注册表项,可能在安装emacs时已在系统上设置了其中一个变量