编译C与MS Visual C ++ 2010'sys / resource.h':没有这样的文件

编译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.