NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
kalle
Joined: 23 Jul 2010 Posts: 2
|
Posted: Sat Jul 24, 2010 1:01 am Post subject: Problem compiling c/c++ |
|
|
Hi,
I'm new to the NetBeans IDE and don't know what to do.
I get this error when trying to compile both c and cpp:
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/c__test.exe
make[2]: Entering directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
make[2]: mkdir: Command not found
mkdir -p build/Debug/MinGW-Windows
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
make[1]: Leaving directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
BUILD FAILED (exit value 2, total time: 657ms)
and this error trying to do a, clean and build:
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
make[1]: rm: Command not found
rm -f -r build/Debug
make[1]: *** [.clean-conf] Error 127
make: *** [.clean-impl] Error 2
make[1]: Leaving directory `/c/Documents and Settings/Kalle/Desktop/Projekt/C++Test'
CLEAN FAILED (exit value 2, total time: 578ms)
I'm running NetBeans on windows XP, using the latest MinGW and MSYS.
Thanks in advance,
Carl |
|
| Back to top |
|
 |
soldatov
Joined: 05 Nov 2009 Posts: 390
|
Posted: Sat Jul 24, 2010 9:17 am Post subject: |
|
|
| Quote: |
make[2]: mkdir: Command not found
|
MSYS should be added into %Path% |
|
| Back to top |
|
 |
kalle
Joined: 23 Jul 2010 Posts: 2
|
Posted: Sat Jul 24, 2010 5:13 pm Post subject: |
|
|
Works perfect.
Tanks,
Carl |
|
| Back to top |
|
 |
viditkothari
Joined: 21 Sep 2010 Posts: 5 Location: Patna
|
|
| Back to top |
|
 |
viditkothari
Joined: 21 Sep 2010 Posts: 5 Location: Patna
|
Posted: Tue Oct 19, 2010 7:11 pm Post subject: Finally NetBeans worked. |
|
|
My System : Dell 580s, Win7 Home Basic
Hi! After so much of hit and trial I've finally found solution.
-First I installed the cygwin files as instructed in the NetBeans C/C++ setup guide : netbeans.org/community/releases/69/cpp-setup-instructions.html#compilers_windows
-Installed NetBeans
-Added the path of the CYGWIN installation to the environmental path
-Permitted my user all access over NetBeans' project folder (usually : C:\Users\viditkothari\Documents) and the Cygwin installation folder (C:\cygwin)
and then tested the HELLO WORLD coded without any difficulty  |
|
| Back to top |
|
 |
iozk
Joined: 29 Oct 2010 Posts: 5
|
Posted: Fri Oct 29, 2010 8:36 pm Post subject: |
|
|
| soldatov wrote: | | Quote: |
make[2]: mkdir: Command not found
|
MSYS should be added into %Path% |
hi i got the same problem
how do you add it? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|