Netbeans Build Error 2
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow [.build-conf] error 2 the company Business Learn more about hiring developers or posting ads with us Stack nbproject/makefile-impl.mk:39: recipe for target '.build-impl' failed Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Build Failed Exit Value 2
6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up NetBeans IDE C++ errors make: *** [.build-impl] Error 2 up vote -3 down vote favorite compiler configuration http://postimg.org/image/a2tyudb9x/ errors http://wklej.org/id/1760716/ I do not know why but I can not compile even simple code in c ++. c++ gcc netbeans makefile g++ share|improve this question asked Jul 21 '15 at 13:49 koxfx 12 1 Downvoted since it is unclear what you are asking (there is no question here). Please add your code here, and show the errors! –anderas Jul 21 '15 at 13:55 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted you have added two files to your project test.cpp and main.cpp, and both files contains main() defination. you can delete one of the two files, and you will be able to compile without a problem. share|improve this answer answered Jul 21 '15 at 15:24 Ahmed Abdelfattah 433 Thank you for your help. I deleted my main.cpp and compiles the code without error. –koxfx Jul 22 '15 at 16:35 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged c++ gcc netbeans makefile g++ or ask your own question. asked 1 year ago viewed 482 times active 1 year ago Related 1Compilation error in Makefile, includes not showing up0G++ wrong ELF CLASS Error1Pre-compiled header gets created on every make?5Netbeans Remote C++ Development “No rule to make target” Error15922Why is it faster to process a sorted array than an unsorted array?0Simple netbeans C++ project doesn't compile1g++ installed but make says g
Can anyone help me fix this problem? NetBeans Forums -> C/C++ Users View previous topic :: View next topic Author Message EonyxJoined: 24 Nov 2013Posts: 1 Posted: Sun Nov 24, 2013 12:57 pm Post subject: C/C++ netbeans not working with minGW compiler. Can anyone help me fix this problem? I have all the tools installed in netbeans IDE. but http://stackoverflow.com/questions/31541007/netbeans-ide-c-errors-make-build-impl-error-2 when I run a sample program to verify installation of tools it gives this error "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe[1]: Entering directory "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk make.exe[2]: Entering director mkdir -p build/Debug/MinGW-Windows make.exe[2]: mkdir: Command not found make.exe[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 127 make.exe[2]: Leaving directory make.exe[1]: *** [.build-conf] http://forums.netbeans.org/post-153779.html Error 2 make.exe[1]: Leaving directory make.exe": *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 5s) I am using Netbeans IDE 7.4 in windows 8 x64 with minGW, please help Back to top CppNoviceJoined: 14 Dec 2013Posts: 1 Posted: Sat Dec 14, 2013 7:53 am Post subject: I'm having nearly the same issue. I tried to build the "Welcome" sample and this is what the Output would display: Quote: "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe[1]: Entering directory `/c/Users/Me/Documents/NetBeansProjects/Welcome_1' "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome_1.exe make.exe[2]: Entering directory `/c/Users/Me/Documents/NetBeansProjects/Welcome_1' mkdir -p build/Debug/MinGW-Windows 0 [main] mkdir 4364 open_stackdumpfile: Dumping stack trace to mkdir.exe.stackdump make.exe[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 5 make.exe[2]: Leaving directory `/c/Users/Me/Documents/NetBeansProjects/Welcome_1' make.exe[1]: *** [.build-conf] Error 2 make.exe[1]: Leaving directory `/c/Users/Me/Documents/NetBeansProjects/Welcome_1' make.exe": *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 5s) I've made certain that I set up the environment variables under the system vari
C/C++ Users View previous topic :: http://ww.planetnetbeans.org/post-9023.html View next topic Author Message illbashuJoined: 30 Sep 2008Posts: 7 Posted: Tue Sep 30, 2008 5:46 am Post subject: Netbeans error! HELP PLZ! i am getting i followed the thing i and i installed cygwin... this is the error Code: Running "C:\cygwin\bin\make.exe error 2 -f Makefile CONF=Debug" in C:\Documents and Settings\Bash\My Documents\NetBeansProjects\HelloApp_2\helloapp /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf make[1]: Entering directory `/cygdrive/c/Documents and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/helloapp' cd ../hello1lib && /usr/bin/make -f Makefile CONF=Debug make[2]: Entering directory `/cygdrive/c/Documents and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/hello1lib' /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf make[3]: Entering directory `/cygdrive/c/Documents netbeans build error and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/hello1lib' mkdir -p build/Debug/Cygwin-Windows gcc-g++.lst.gz -c -g -o build/Debug/Cygwin-Windows/hello1.o hello1.cc make[3]: gcc-g++.lst.gz: Command not found make[3]: *** [build/Debug/Cygwin-Windows/hello1.o] Error 127 make[3]: Leaving directory `/cygdrive/c/Documents and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/hello1lib' make[2]: *** [.build-impl] Error 2 make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/hello1lib' make[1]: *** [.build-subprojects] Error 2 make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Bash/My Documents/NetBeansProjects/HelloApp_2/helloapp' make: *** [.build-impl] Error 2 Build failed. Exit value 2. i have gcc 3.4.4, g++3.4.4, gnu fortran 3.4.4, gnu make 3.81, gdb 6.80.20080328-cvs Back to top Gordon PrieurPosted via mailing list. Posted: Tue Sep 30, 2008 2:56 pm Post subject: Netbeans error! Hi, It looks like you have a gzip file (gcc-g++.lst.gz) in some directory in your PATH and the C/C++ build system see's that it starts with gcc and thinks its a comp