Netbeans C ++应用程序无法构建 [英] Netbeans C++ Application won't build

查看:128
本文介绍了Netbeans C ++应用程序无法构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了MiniGW编译器,以便可以开始学习C ++.但是,当我去创建一个新项目并包含main时,从开始(创建项目后)会出现两个错误消息:Cannot Find Include File <cstdlib>Unable to resolve identifier std;当我尝试清理并构建"项目时,清理成功,但构建失败.我已经完成了一次Google搜索,并遇到了这篇文章,但是我不确定我的问题是否完全相同,因为我的项目无法构建(或者我不知道),而且我也不确定了解接受的答案.这可能是多个问题,还是仅一个?我想解决此问题,以便学习!

I recently installed the MiniGW compiler so that I can start learning C++. But when I go to create a new project and have it include main, I get two error messages from the start(after the project has been created) Cannot Find Include File <cstdlib> and Unable to resolve identifier std and when I try and 'Clean and Build' the project, the clean is successful and the build is not. I have done a google search and ran across this post Netbeans 7.2 shows "Unable to resolve identifier" , although build is successful , but I'm not sure my problem is exactly the same since my project won't build (or maybe it is, I don't know), and I'm also not sure I understand the accepted answer. Can this be multiple problems or just one? I want to get this fixed so I can learn!

/* 
 * File:   main.cpp
 * Author: Zf
 *
 * Created on December 16, 2014, 1:50 PM
 */

#include <cstdlib>

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    return 0;
}

第7行和第8行是错误消息所在的地方.

Lines 7 and 8 are where the error messages are.

推荐答案

Tool Collection设置正确吗?

例如 在C:\minGW\lib\gcc\mingw32\4.8.1\include\c++

这篇关于Netbeans C ++应用程序无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆