Netbeans使用cygwin编译器突然失败了

时间:2014-08-26 05:25:12

标签: c++ netbeans build cygwin

我是学习C ++的初学者,并且在编译器工作和我的程序成功构建方面遇到了很多问题。我开始使用MinGW虽然没有成功。在转换为cygwin之后,该程序已经构建,但在关闭并打开Netbeans并尝试重新运行程序之后,它已经失败并且源代码中没有错误。

这是输出;

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/Vicky   Ferguson/Documents/NetBeansProjects/Hello'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/hello.exe
make[2]: Entering directory '/cygdrive/c/Users/Vicky  Ferguson/Documents/NetBeansProjects/Hello'
make[2]: *** No rule to make target 'firstprogram.cpp', needed by 'build/Debug/Cygwin-  Windows/firstprogram.o'.  Stop.
make[2]: Leaving directory '/cygdrive/c/Users/Vicky  Ferguson/Documents/NetBeansProjects/Hello'
nbproject/Makefile-Debug.mk:60: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Vicky      Ferguson/Documents/NetBeansProjects/Hello'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 653ms)

这是源代码;

#include <cstdlib>
#include <iostream>
using namespace std;

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

    cin>>howmany;
    while(howmany-->0)
        cout << "Hello" << endl;
    return 0;
}

这是我编译器的问题吗?我不明白为什么当我运行clean / build时突然停止工作,虽然构建不是

但是干净是成功的

0 个答案:

没有答案