Topic: oofem under windows
I am trying to setup OOFem under Windows. I managed to run it under Cygwin. Now, I am using MinGW, with Eclipse. There is one system header (sys/resource.h) that does not exist under MinGW. What is the best option to fix this behaviour?
On one hand, this is a general question somewhat beyond OOFem, since it touches upon portability between Linux and MinGW. On the other hand, the particular solution for OOFem may be not the same (and perhaps simpler) as for other packages, depending on why is sys/resource.h needed.
Trial and error led me to copying cygwin/usr/include/sys/resource.h into MinGW/include/sys/resource.h, commenting out lines 76 and 77:
/*int getpriority (int which, id_t who);
int setpriority (int which, id_t who, int value);*/
which apparently only leave the problem at linkage time:
undefined reference to `getrusage'
These are some URLs that relate to the issue (I post them simply for reference, perhaps they are relevant/useful).