SHARE
TWEET
Build Error
a guest
Oct 28th, 2012
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // hello world program
- #include <stdio.h>
- void main(void)
- {
- printf("hello world!");
- }
- #######################################################
- ERROR (debugging)
- #######################################################
- "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
- make[1]: Entering directory `/home/myusername/NetBeansProjects/CppApplication_1'
- nbproject/Makefile-Debug.mk:71: warning: overriding commands for target `build/Debug/GNU-Linux-x86/main.o'
- nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/main.o'
- "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_1
- make[2]: Entering directory `/home/myusername/NetBeansProjects/CppApplication_1'
- nbproject/Makefile-Debug.mk:71: warning: overriding commands for target `build/Debug/GNU-Linux-x86/main.o'
- nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/main.o'
- mkdir -p dist/Debug/GNU-Linux-x86
- g++ -o dist/Debug/GNU-Linux-x86/cppapplication_1 build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/main.o
- build/Debug/GNU-Linux-x86/main.o: In function `main':
- /home/myusername/NetBeansProjects/CppApplication_1/main.c:11: multiple definition of `main'
- build/Debug/GNU-Linux-x86/main.o:/home/myusername/NetBeansProjects/CppApplication_1/main.c:11: first defined here
- collect2: error: ld returned 1 exit status
- make[2]: *** [dist/Debug/GNU-Linux-x86/cppapplication_1] Error 1
- make[2]: Leaving directory `/home/myusername/NetBeansProjects/CppApplication_1'
- make[1]: *** [.build-conf] Error 2
- make[1]: Leaving directory `/home/myusername/NetBeansProjects/CppApplication_1'
- make: *** [.build-impl] Error 2
- BUILD FAILED (exit value 2, total time: 67ms)
RAW Paste Data

