无法编译项目,缺少io.h文件 [英] failing to compile a project, missing io.h file
问题描述
我无法使用Windows Mobile(基于Windows CE的)操作系统编译移动设备的C ++项目,Visual Studio中的Visual C ++编译器失败:
I fail to compile a C++ project for mobile device with Windows Mobile (Windows CE-based) operating system and Visual C++ compiler from Visual Studio fails with:
Error 1 fatal error C1083: Cannot open include file: 'io.h'
EDIT
我试图编译SQLite合并,shell.c文件包括对此io.h的调用,但文件中缺少io.h 。
EDIT
I am trying to compile the SQLite amalgamation, the shell.c file includes the call to this io.h but the io.h is missing from the files.
我googled,我找不到如何获得这个.h文件。
I googled and I couldn't locate how can I get this .h file.
有人可能指向正确的方向吗?
Can someone point me in the right direction?
推荐答案
io.h
文件不。
事实上, io.h
头从来不是ISO C或C ++标准的一部分。它定义Windows NT上属于 POSIX兼容性层的功能,但不定义 Windows CE 。
The io.h
file is not available in SDKs for Windows CE-based systems like Windows Mobile.
In fact, io.h
header has never been a part of ISO C nor C++ standards. It defines features that belongs POSIX compatibility layer on Windows NT, but not Windows CE.
由于Windows上缺少POSIX功能CE,我开发了一个小型实用程序库 WCELIBCEX 。 包括io.h 但是一个非常小的版本,这可能不足以满足SQLite。但是,如 ctacke 所述,您应该使用 Windows CE的SQLite端口因为SQLite的原始版本不能为这个平台编译。
Due to lack of POSIX features on Windows CE, I developed a small utility library WCELIBCEX. It does include io.h but a very minimal version and which is likely insufficient for SQLite. However, as ctacke mentioned, you should use SQLite port for Windows CE because original version of SQLite is not compilable for this platform.
ps注意,您的问题没有明确指定您正在为Windows Mobile构建。如果没有发现标签中提到的.NET Compact Framework,那么整个问题就不明确了。
p.s. Note, Your question does not specify explicitly that you're building for Windows Mobile. If one doesn't spot the .NET Compact Framework mentioned in tags, then the whole question is ambiguous.
这篇关于无法编译项目,缺少io.h文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!