新手问题:包含在 Netbeans + 中明GW
我下载了这个 C++ 项目: http://lagrange.ime.usp.br/~lobato/packing/
我尝试在 Mac 上运行它,效果非常好。
现在我需要在带有 Netbeans 7.0 和 MinGW Compiler 5.1.6 的 Windows 7 计算机上运行它:它无法编译。我在包含上遇到错误:
#include <sys/resource.h>
#include <sys/times.h>
我发现 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第一步是注释掉那些 #includes 并看看会发生什么。如果出现编译错误,那么您将不得不查看有问题的代码并找出用什么来替换它。
这不是愚蠢的问题,而是您下载的精彩代码,它似乎是特定于平台的,没有明显的原因。
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.