使用cygwin在Windows 10上为Netbeans建立FAILED(退出值2,总时间:1秒)

时间:2017-04-16 03:29:44

标签: c++ windows netbeans makefile

    cd 'C:\Users\Ninad\Documents\NetBeansProjects\CppApplication_1'
    C:\cygwin\bin\make.exe -f Makefile CONF=Debug
    "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS=         .build-conf
    make[1]: Entering directory         '/cygdrive/c/Users/Ninad/Documents/NetBeansProjects/CppApplication_1'
    "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-        Windows/cppapplication_1.exe
    make[2]: Entering directory         '/cygdrive/c/Users/Ninad/Documents/NetBeansProjects/CppApplication_1'
    mkdir -p build/Debug/Cygwin-Windows
    rm -f "build/Debug/Cygwin-Windows/main.o.d"
    g++    -c -g -MMD -MP -MF "build/Debug/Cygwin-Windows/main.o.d" -o         build/Debug/Cygwin-Windows/main.o main.cpp
    main.cpp: In function 'int main(int, char**)':
    main.cpp:23:5: error: 'cout' was not declared in this scope
    make[2]: *** [nbproject/Makefile-Debug.mk:68: build/Debug/Cygwin-Windows/main.o] Error 1
    make[2]: Leaving directory '/cygdrive/c/Users/Ninad/Documents/NetBeansProjects/CppApplication_1'
    make[1]: *** [nbproject/Makefile-Debug.mk:59: .build-conf] Error 2
    make[1]: Leaving directory '/cygdrive/c/Users/Ninad/Documents/NetBeansProjects/CppApplication_1'
    make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2

BUILD FAILED(退出值2,总时间:1秒)

我不确定出了什么问题,但无法解决此问题,并检查了所有可用的解决方案,但仍然存在。

0 个答案:

没有答案