致命错误C1083:无法打开包含文件:' excpt.h'和' ctype.h'

时间:2016-01-11 04:23:19

标签: build visual-studio-2015 tortoisesvn nant

我正在尝试构建 TortoiseSVN ,当我运行 nant 设置时,我遇到了这些构建错误,我不确定如何解决它们。在SO上有类似的帖子,但它们已经过时或不适用于我的情况。最终,我将需要使用Visual Studio 2015来构建项目。

以下是日志中的构建错误:

[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\dir.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filepath.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filestat.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\network_io\unix\sockaddr.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\atomic\win32\apr_atomic.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\locks\win32\proc_mutex.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\encoding\apr_escape.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h(160) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filesys.c)

[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\dir.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\locks\win32\proc_mutex.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filepath.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filestat.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\network_io\unix\sockaddr.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\atomic\win32\apr_atomic.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\file_io\win32\filesys.c)
[build cl] C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file C:\Users\~\Desktop\SVN\TortoiseSVN192\ext\apr\encoding\apr_escape.c)

1 个答案:

答案 0 :(得分:2)

我在这里看到了Header文件:

C:\Program Files (x86)\Windows Kits\8.1\Include\km\crt\excpt.h

因此,将路径C:\Program Files (x86)\Windows Kits\8.1\Include\km\crt\添加到项目属性中搜索包含文件。

如果您使用Win10 SDK(适用于版本1511),它位于此处:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\km\crt\excpt.h