Derek
Derek

Reputation: 33

Compiling C with MS Visual C++ 2010 'sys/resource.h': No such file

I'm trying to MEX (compile) the implementation linked as "Metric WFG implementation" on http://www.wfg.csse.uwa.edu.au/hypervolume/

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

I created my own stdbool.h with the following:

#pragma once

#define false   0
#define true    1

#define bool int

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 

I tried removing sys/ however it gives the same error.

Anyone know the solution?

Thank you

Upvotes: 2

Views: 10915

Answers (1)

jfly
jfly

Reputation: 8010

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.

Upvotes: 5

Related Questions