Netbeans 7.4运行时出现问题
Trouble getting Netbeans 7.4 working
嗨,我想试试c++,但我无法让netbeans编译器为你好世界工作。。。。。这是我从教程粘贴的代码副本:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
这是我得到的错误信息:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/Jeremy/Documents/NetBeansProjects/Hello World'
cygwin warning:
MS-DOS style path detected: build/Debug/Cygwin-Windows/hello.d
Preferred POSIX equivalent is: build/Debug/Cygwin-Windows/hello/.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-Windows/hello_world.exe
make[2]: Entering directory '/cygdrive/c/Users/Jeremy/Documents/NetBeansProjects/Hello World'
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/hello world.o.d
g++ -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/hello world.o.d -o build/Debug/Cygwin-Windows/hello world.o hello world.cpp
g++: error: world.o.d: No such file or directory
nbproject/Makefile-Debug.mk:68: recipe for target 'build/Debug/Cygwin-Windows/hello world.o' failed
make[2]: *** [build/Debug/Cygwin-Windows/hello world.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/Jeremy/Documents/NetBeansProjects/Hello World'
nbproject/Makefile-Debug.mk:60: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Jeremy/Documents/NetBeansProjects/Hello World'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 3s)
在我看来,您将源文件命名为hello world.cpp
。NetBeans似乎不喜欢这种语法。
命名文件的规范方法是不使用空格。helloworld.cpp
会更好地为您服务。
相关文章:
- 如何修复 Onnx运行时会话>运行问题?
- 'make check' GLIBC 运行时的链接问题
- 运行时C++数组初始化问题
- 在Hackerearth上获取运行时错误(SIGSEGV),无法找出代码中的问题
- C++ DLL 运行时错误"abc.dll is not a valid WIN32 application" 。请帮助解决这个问题
- 我正在尝试使用回溯来解决 N queen 问题,但在编译时它会给出运行时错误(动态堆栈缓冲区溢出)
- 提升反序列化问题:运行时输入流错误 (c++)
- 这个C++代码有什么问题?它在运行时崩溃
- 我在C++中使用删除运算符时遇到问题。我在运行时不断收到"double free or corruption (fasttop)"错误
- Netbeans 7.4运行时出现问题
- 64位Android编译,但在运行时出现问题
- C++:运行时将共享对象与主机应用程序链接,符号表问题
- 使用 QT 线程解决运行时问题
- C++ 运行时问题
- 在机器上运行时,编译的源代码(C++、Java 等)涉及哪些安全问题
- 运行时设置OMP_THREAD_LIMIT的问题(c ++ gcc 4.4.7)
- Windows Phone Silverlight 8.1运行时组件中的urlmon.h问题
- OpenGL顶点着色器运行时问题(不使用VBOs或纹理)
- 运行时GLSL着色器编译问题
- Xcode是否可以防止c++数组边界运行时问题?