The "clean" target which is executed via the IDE fails
because it tries to use "rm" to clear the files.
"rm" is not part of MingW but MSYS, and I doubt every
user has MSYS correctly installed.
So I suggest changing this to another built-in command
Logged In: YES
user_id=609236
mingw doesn't not include rm, but we do (for the time
being):
http://sourceforge.net/project/shownotes.php?release_id=274022
so rm is in c:\dev-cpp\bin directory, doesn't need to be
installed separately.
Logged In: YES
user_id=609236
mingw-make also defines ${RM} which points to rm -f. this
bug is related to
http://sourceforge.net/tracker/index.php?func=detail&aid=1006287&group_id=10639&atid=360639
Logged In: YES
user_id=392303
Im using Dev-C++ with an external MingW setup integrated so
"rm" isnt there.
Ive read the suggestion in the developer forum about the
"Windows_NT" workaround and Id vote for it, since this
dependancy on "rm" is the only exception where Dev-C++
relies on something not included with stock MingW
Logged In: YES
user_id=609236
problem is when I do
RM= del /f/q
when dev-c++ rebuilds project by
make -f Makefile.win clean all
it fails when del /f/q returns error code when one of the
files doesn't exist. rm -f doesn't return error when one of
files doesn't exist
Logged In: YES
user_id=392303
Ok if Dev-C++ depends on it what about bundling it in a
"tools" subdir independant of MingW being included or not,
and using this copy of rm.
Logged In: YES
user_id=609236
something like this is much better tough:
https://sourceforge.net/forum/message.php?msg_id=2882821
Logged In: YES
user_id=609236
done in cvs http://www.castlesofpoland.com/dev-cpp/devcpp.exe
Logged In: YES
user_id=609236
FYI:
http://sourceforge.net/tracker/index.php?func=detail&aid=1081447&group_id=10639&atid=110639
del doesn't seem to work correctly with dev-c++ and its
makefiles. nobody seems to know how to solve it, if this is
confirmed the best thing to do would be to go back to rm.
Logged In: YES
user_id=609236
I rolled back dev-cpp to use rm instead of del.
see discussion:
http://sourceforge.net/tracker/index.php?func=detail&aid=1081447&group_id=10639&atid=110639
there are no problems with simple
del file,
but when you switch to del from rm, del accepts only \ as
path delimiter, while rm on windows accepts both. additional
problems occur when path and/or file name contains spaces:
del accepts format "some dir\some file", but rm needs rm
"some\ dir/some\ file" which causes all sorts of problems
and clean section is no longer just "rm -f $(OBJ) $(BIN)".
I'm reopening this bug report.
Logged In: YES
user_id=392303
So is something changed now?
If "rm" is still used why isnt it bundled with the
non-mingw version?
Logged In: YES
user_id=609236
it's definitely something to think about for next dev-c++.
in meantime the best solution would be to unpack binutils
devpack and copy rm.exe into your bin directory