我在 ubuntu for c++ 上使用 netbeans IDE,每当我运行程序时,我都会收到 BUILD_FAIL 错误
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/rupesh/NetBeansProjects/Cpp1'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cpp1
make[2]: Entering directory `/home/rupesh/NetBeansProjects/Cpp1'
mkdir -p dist/Debug/GNU-Linux-x86
g++-o dist/Debug/GNU-Linux-x86/cpp1 build/Debug/GNU-Linux-x86/main.o build/Debug/GNU- Linux-x86/1.o
build/Debug/GNU-Linux-x86/1.o: In function `main':
/home/rupesh/NetBeansProjects/Cpp1/1.cpp:4: multiple definition of `main'
build/Debug/GNU-Linux-x86/main.o:/home/rupesh/NetBeansProjects/Cpp1/main.cpp:15: first defined here
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/cpp1] Error 1
make[2]: Leaving directory `/home/rupesh/NetBeansProjects/Cpp1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/home/rupesh/NetBeansProjects/Cpp1'
make: *** [.build-impl] Error 2
BUILD FAILED(退出值2,总时间:190ms)
我正在运行一个简单的程序来打印你好世界。