NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Problem compiling c/c++

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
kalle



Joined: 23 Jul 2010
Posts: 2

PostPosted: Sat Jul 24, 2010 1:01 am    Post subject: Problem compiling c/c++ Reply with quote

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: 455

PostPosted: Sat Jul 24, 2010 9:17 am    Post subject: Reply with quote

Quote:

make[2]: mkdir: Command not found

MSYS should be added into %Path%
Back to top
kalle



Joined: 23 Jul 2010
Posts: 2

PostPosted: Sat Jul 24, 2010 5:13 pm    Post subject: Reply with quote

Works perfect.

Tanks,
Carl
Back to top
viditkothari



Joined: 21 Sep 2010
Posts: 5
Location: Patna

PostPosted: Tue Sep 21, 2010 12:23 pm    Post subject: I got a similar error Reply with quote

WORKING ON:
-Win 7 Home Basic
-NetBeans 6.9.1

Have added "C:\cygwin\bin" to the Environment path through My Computer.


Details of the error encountered :

On Compilation:
or http://imm.io/1now

At Run:
or http://imm.io/1noq

---------------------------------------
NetBeans Project Location
or http://imm.io/1noC

Cygwin Location
or http://imm.io/1noK

You can view all the screenshots @
http://picasaweb.google.com/kothari.vidit/Desktop?feat=directlink
Back to top
viditkothari



Joined: 21 Sep 2010
Posts: 5
Location: Patna

PostPosted: Tue Oct 19, 2010 7:11 pm    Post subject: Finally NetBeans worked. Reply with quote

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 Smile
Back to top
iozk



Joined: 29 Oct 2010
Posts: 5

PostPosted: Fri Oct 29, 2010 8:36 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo