编译C与MS Visual C ++ 2010'sys / resource.h':没有这样的文件 [英] Compiling C with MS Visual C++ 2010 'sys/resource.h': No such file

查看:2166
本文介绍了编译C与MS Visual C ++ 2010'sys / resource.h':没有这样的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 http://www.wfg.csse.uwa.edu.au/hypervolume/

使用Microsoft Visual C ++ 2010编译器执行此操作时,我收到关于sys / time.h和stdbool.h的错误。

When doing so with the Microsoft Visual C++ 2010 compiler, I received errors about sys/time.h and stdbool.h.

我创建了自己的stdbool.h,具有以下内容:

I created my own stdbool.h with the following:

#pragma once

#define false   0
#define true    1

#define bool int

并检查sys / time.h到time.h。

and checked sys/time.h to time.h.

但我现在遇到以下问题:

However I'm now stuck with the following issue:

wfg.c(37) : fatal error C1083: Cannot open include file: 'sys/resource.h': No such file or directory 

任何人都知道解决方案?

Anyone know the solution?

谢谢

推荐答案

sys / resource.h是一个posix头文件,当然VC2010找不到它。也许你应该安装cygwin做这个工作,如果你坚持windows。

sys/resource.h is a posix header file, of course the VC2010 can't find it. Maybe you should install cygwin to do this work if you stick to windows.

这篇关于编译C与MS Visual C ++ 2010'sys / resource.h':没有这样的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆