daily pastebin goal
27%
SHARE
TWEET

Build Error

a guest Oct 28th, 2012 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // hello world program
  2. #include <stdio.h>
  3.  
  4. void main(void)
  5. {
  6.     printf("hello world!");
  7. }
  8. #######################################################
  9. ERROR (debugging)
  10. #######################################################
  11. "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  12. make[1]: Entering directory `/home/myusername/NetBeansProjects/CppApplication_1'
  13. nbproject/Makefile-Debug.mk:71: warning: overriding commands for target `build/Debug/GNU-Linux-x86/main.o'
  14. nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/main.o'
  15. "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_1
  16. make[2]: Entering directory `/home/myusername/NetBeansProjects/CppApplication_1'
  17. nbproject/Makefile-Debug.mk:71: warning: overriding commands for target `build/Debug/GNU-Linux-x86/main.o'
  18. nbproject/Makefile-Debug.mk:66: warning: ignoring old commands for target `build/Debug/GNU-Linux-x86/main.o'
  19. mkdir -p dist/Debug/GNU-Linux-x86
  20. g++     -o dist/Debug/GNU-Linux-x86/cppapplication_1 build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/main.o  
  21. build/Debug/GNU-Linux-x86/main.o: In function `main':
  22. /home/myusername/NetBeansProjects/CppApplication_1/main.c:11: multiple definition of `main'
  23. build/Debug/GNU-Linux-x86/main.o:/home/myusername/NetBeansProjects/CppApplication_1/main.c:11: first defined here
  24. collect2: error: ld returned 1 exit status
  25. make[2]: *** [dist/Debug/GNU-Linux-x86/cppapplication_1] Error 1
  26. make[2]: Leaving directory `/home/myusername/NetBeansProjects/CppApplication_1'
  27. make[1]: *** [.build-conf] Error 2
  28. make[1]: Leaving directory `/home/myusername/NetBeansProjects/CppApplication_1'
  29. make: *** [.build-impl] Error 2
  30.  
  31. BUILD FAILED (exit value 2, total time: 67ms)
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top