Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/162.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Netbeans 7.4 C++;简单的hello world错误构建失败在google搜索结果的前2页上尝试了所有操作 “/usr/bin/make”-f nbproject/Makefile-Debug.mk QMAKE=子项目=.build conf make[1]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” cygwin警告: 检测到MS-DOS样式路径:build/Debug/Cygwin_4.x-Windows/Tutorial\.d 首选的POSIX等价物是:build/Debug/Cygwin_4.x-Windows/Tutorial/.d CYGWIN环境变量选项“nodosfilewarning”将关闭此警告。 有关POSIX路径的更多详细信息,请参阅用户指南: http://cygwin.com/cygwin-ug-net/using.html#using-路径名 “/usr/bin/make”-f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/tutorial_1.exe make[2]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” mkdir-p build/Debug/Cygwin_4.x-Windows rm-f build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d g++-c-g-MMD-MP-MF build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d-o build/Debug/Cygwin_4.x-Windows/Tutorial\1.o Tutorial\1.cpp g++:错误:1.o.d:没有这样的文件或目录 nbproject/Makefile Debug.mk:68:目标“build/Debug/Cygwin_4.x-Windows/Tutorial 1.o”的配方失败 make[2]:***[build/Debug/Cygwin_4.x-Windows/Tutorial 1.o]错误1 make[2]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile Debug.mk:60:目标“.build conf”的配方失败 生成[1]:***[.build conf]错误2 make[1]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile impl.mk:39:目标“.build impl”的配方失败 make:**[.build impl]错误2 生成失败(退出值2,总时间:330ms) #包括 int main() { std::cout_C++_Netbeans_Compiler Construction_Cygwin - Fatal编程技术网

C++ Netbeans 7.4 C++;简单的hello world错误构建失败在google搜索结果的前2页上尝试了所有操作 “/usr/bin/make”-f nbproject/Makefile-Debug.mk QMAKE=子项目=.build conf make[1]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” cygwin警告: 检测到MS-DOS样式路径:build/Debug/Cygwin_4.x-Windows/Tutorial\.d 首选的POSIX等价物是:build/Debug/Cygwin_4.x-Windows/Tutorial/.d CYGWIN环境变量选项“nodosfilewarning”将关闭此警告。 有关POSIX路径的更多详细信息,请参阅用户指南: http://cygwin.com/cygwin-ug-net/using.html#using-路径名 “/usr/bin/make”-f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/tutorial_1.exe make[2]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” mkdir-p build/Debug/Cygwin_4.x-Windows rm-f build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d g++-c-g-MMD-MP-MF build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d-o build/Debug/Cygwin_4.x-Windows/Tutorial\1.o Tutorial\1.cpp g++:错误:1.o.d:没有这样的文件或目录 nbproject/Makefile Debug.mk:68:目标“build/Debug/Cygwin_4.x-Windows/Tutorial 1.o”的配方失败 make[2]:***[build/Debug/Cygwin_4.x-Windows/Tutorial 1.o]错误1 make[2]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile Debug.mk:60:目标“.build conf”的配方失败 生成[1]:***[.build conf]错误2 make[1]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile impl.mk:39:目标“.build impl”的配方失败 make:**[.build impl]错误2 生成失败(退出值2,总时间:330ms) #包括 int main() { std::cout

C++ Netbeans 7.4 C++;简单的hello world错误构建失败在google搜索结果的前2页上尝试了所有操作 “/usr/bin/make”-f nbproject/Makefile-Debug.mk QMAKE=子项目=.build conf make[1]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” cygwin警告: 检测到MS-DOS样式路径:build/Debug/Cygwin_4.x-Windows/Tutorial\.d 首选的POSIX等价物是:build/Debug/Cygwin_4.x-Windows/Tutorial/.d CYGWIN环境变量选项“nodosfilewarning”将关闭此警告。 有关POSIX路径的更多详细信息,请参阅用户指南: http://cygwin.com/cygwin-ug-net/using.html#using-路径名 “/usr/bin/make”-f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/tutorial_1.exe make[2]:输入目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” mkdir-p build/Debug/Cygwin_4.x-Windows rm-f build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d g++-c-g-MMD-MP-MF build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d-o build/Debug/Cygwin_4.x-Windows/Tutorial\1.o Tutorial\1.cpp g++:错误:1.o.d:没有这样的文件或目录 nbproject/Makefile Debug.mk:68:目标“build/Debug/Cygwin_4.x-Windows/Tutorial 1.o”的配方失败 make[2]:***[build/Debug/Cygwin_4.x-Windows/Tutorial 1.o]错误1 make[2]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile Debug.mk:60:目标“.build conf”的配方失败 生成[1]:***[.build conf]错误2 make[1]:离开目录“/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1” nbproject/Makefile impl.mk:39:目标“.build impl”的配方失败 make:**[.build impl]错误2 生成失败(退出值2,总时间:330ms) #包括 int main() { std::cout,c++,netbeans,compiler-construction,cygwin,C++,Netbeans,Compiler Construction,Cygwin,您似乎有一个类似于“Tutorial 1.cpp”的文件名。也就是说,有一个嵌入空间。netbeans可能支持它,但它可能会混淆构建脚本 我真的应该避免在文件名中使用空格 "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory '/cygdrive/c/Users/Great Albino/Documents /

您似乎有一个类似于“Tutorial 1.cpp”的文件名。也就是说,有一个嵌入空间。netbeans可能支持它,但它可能会混淆构建脚本

我真的应该避免在文件名中使用空格

    "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
    make[1]: Entering directory '/cygdrive/c/Users/Great Albino/Documents       /NetBeansProjects/Tutorial 1'
    cygwin warning:
  MS-DOS style path detected: build/Debug/Cygwin_4.x-Windows/Tutorial\.d
  Preferred POSIX equivalent is: build/Debug/Cygwin_4.x-Windows/Tutorial/.d
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin_4.x-Windows/tutorial_1.exe
make[2]: Entering directory '/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1'
mkdir -p build/Debug/Cygwin_4.x-Windows
rm -f build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d
g++    -c -g -MMD -MP -MF build/Debug/Cygwin_4.x-Windows/Tutorial 1.o.d -o build/Debug/Cygwin_4.x-Windows/Tutorial\ 1.o Tutorial\ 1.cpp
g++: error: 1.o.d: No such file or directory
nbproject/Makefile-Debug.mk:68: recipe for target 'build/Debug/Cygwin_4.x-Windows/Tutorial 1.o' failed
make[2]: *** [build/Debug/Cygwin_4.x-Windows/Tutorial 1.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1'
nbproject/Makefile-Debug.mk:60: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Great Albino/Documents/NetBeansProjects/Tutorial 1'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2


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

#include <iostream>

int main()
{
std::cout << "Hello World!";
return 0;
}

and 

#include <iostream>

int main()
{
cout << "Hello World!";
return 0;
}