在项目[windows]上编译#include <sys / uio.h>时发生致命错误

时间:2019-09-11 21:56:51

标签: c++ compiler-errors mingw

使用Windows 10上的mingw编译器尝试为类编译文件。使用g ++进行编译会给我一个错误提示

\projectFile.o
mingw32-g++.exe  -o D:\GitHub\GitRepo\projectFile.exe D:\GitHub\GitRepo\projectFile.o   
D:\GitRepo\projectFile.cpp:16:20: fatal error: sys/uio.h: No such file or directory
compilation terminated.

从IVE中读取此头文件

#include <sys/uio.h>

是unix头,通常包含在大多数unix构建环境中。我正在使用Windows 10构建,但未能成功进行此操作。使用不同标题的Windows是否可以解决?是否有一段时间以某种方式安装此文件?

该项目是一个通用的XML解析器,作为一名学生,我的工作是从主文件中提取函数,以便可以重复使用它们(OOP设计空间)

#include <iostream>
#include <iterator>
#include <string>
#include <cstring>
#include <sys/types.h>
#include <sys/io.h>
#include <unistd.h>
#include <errno.h>
#include <vector>
#include <algorithm>
#include <ctype.h>
#include "XMLParser.hpp"

基于Windows 10(最新版本)和Mingw-64(最新版本)构建 这不会为我编译

0 个答案:

没有答案