User forums > Help

Problems with Rebuild

(1/3) > >>

Anonymous:
Project   : Console application
Compiler  : MinGW Compiler Suite
Directory : D:\CodeBlockTest\
rm -f hello2.exe .objs/main.o  
process_begin: CreateProcess((null), rm -f hello2.exe .objs/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe: *** [clean_default] Error 2
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

What is wrong? I can compile the single file, but rebuild gives me a problem.

Regards,
Thomad

mandrav:
Go to "Settings/Configure plugins/Compiler", switch to the "Makefile variables" tab and change the value of "RM" from "rm -f" to "del /f".
That should do it.

mike:
I got into the same problem after deinstalling Dev-C++ (which obviously had this command). I have installed MinGW distribution, but it does not have "rm". So I changed the settings as described above (by the way, wouldn't it be helpful to do it anyway for Windows distribution? Not too many people have Cygwin incidently installed for the sake of "rm" ;-).

Then running "build" is fine, but running "rebuild" produces the following:

--- Quote ---
Cleaning target "msvc-debug"...
Invalid switch - "<filename>.obj".
mingw32-make.exe: *** [clean_msvc-debug] Error 1
Process terminated with status 1 (0 minutes, 0 seconds)

--- End quote ---

Any ideas?

mandrav:
Grab this package here and unzip it in the mingw installation folder (e.g. c:\Mingw). It contains mv.exe rm.exe and cp.exe. I had these files in my hard drive for so long, I can't remember where I got them... I believe they 're from unxutils.

I think i should bundle those files in the setup (first check the licensing)...

Yiannis.

mike:

--- Quote ---
I think i should bundle those files in the setup (first check the licensing)...

--- End quote ---


Or add Makefile variables to also allow adjusting of "mv" and "cp" to the DOS alternatives "move" and "(x)copy".

Navigation

[0] Message Index

[#] Next page

Go to full version