Noob question: Includes in Netbeans + MinGW
I downloaded this C++ project: http://lagrange.ime.usp.br/~lobato/packing/
I tried to run it on a Mac and it works wonderfully. Now i need to run it on a Windows 7 machine with Netbeans 7.0 and MinGW Compiler 5.1.6: it doesn't compile. I get errors on includes:#include <sys/resource.h>
#include <sys/times.h>
开发者_开发技巧
I found out that MinGW doesn't have these headers... how can i solve this stupid problem?
Well the first step would be to comment out those #includes and see what happens. If you get compile errors then you are going to have to look at the problematic code and figure out what to replace it with.
It's not the problem that's stupid it's the wonderful code you downloaded which seems to be platform specific for no obvious reason.
精彩评论