Thread: [Dev-C++] Dev-C++, MingW, and MSYS
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Mac R. <re...@no...> - 2002-05-28 17:04:15
|
I downloaded the Beta3 installer and everything installed fine. I then
made a trivial "Hello World" project and hit Rebuild All. I was informed
that the required DLL MSYS-1.0.DLL was missing. After much fiddling
around, I discovered that the rm.exe program (presumably from the new MingW
set) is the offending program. I realize that MingW development is
separate, but I was curious what I need to do to get the Beta3 Dev-C++
functional. I was concerned that I might have gotten some confusion
between previous versions, so I made sure to uninstall and delete all
previous versions of the various components.
I have tried downloading and installing the newest MingW, and have also
downloaded and installed the newest MSYS (which is a rather odd little
project, and I would rather not install it if I can help it). I have also
tried placing the MSYS-1.0.DLL from the MSYS system into the \dev-c++\bin\
directory so that rm.exe could find it, but that didn't help.
If it helps for recreating the problem:
- Win98SE
- All previous versions of Dev-C++, MingW, and MSYS uninstalled and
their directories were deleted.
- DevC++ 4.9.3.0 installed (to D:\Programming\Dev-C++, if that matters).
Because I am evaluating C++ dev environments, I also have the following
software installed, which could easily cause problems if Dev-C++ is very
dependent on environment variables (a practice which I loathe -- if you are
going to depend on an environment variable instead of a config file, at
least make it a unique env variable, not something like "INCLUDE". Sorry
for the unfocused rant...)
- Visual C++ 6.0 Learning Edition (came with a book)
- Quincy 2000
- Digital Mars C++ 8.28
Any help would be appreciated, because Dev-C++ looks like it is by far the
best option of what I have, if I can just get it working.
Thanks!
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Ioannis V. <no...@ho...> - 2002-05-28 17:54:11
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Mac Reiter > Sent: Tuesday, May 28, 2002 8:03 PM > To: dev...@li... > Subject: [Dev-C++] Dev-C++, MingW, and MSYS > [...] > Thanks! > Mac > - > _____________________________ /"\ > Mac Reiter \ / ASCII Ribbon Campaign > Nomadics, Inc. X Against HTML Mail > re...@no... / \ (To join the > campaign, simply use > this in your signature.) Hongli here is a fellow soldier. Do not waste your time! The movement is still alive! :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Colin L. <col...@wa...> - 2002-05-28 22:35:17
|
Hi, > I downloaded the Beta3 installer and everything installed fine. I then > made a trivial "Hello World" project and hit Rebuild All. I was informed > that the required DLL MSYS-1.0.DLL was missing. After much fiddling > around, I discovered that the rm.exe program (presumably from the new MingW > set) is the offending program. I realize that MingW development is > separate, but I was curious what I need to do to get the Beta3 Dev-C++ > functional. I was concerned that I might have gotten some confusion > between previous versions, so I made sure to uninstall and delete all > previous versions of the various components. yes sorry about this one, you can get the correct rm.exe from: http://www.haikuzone.org/dev/rm.exe Greetings, Colin |
|
From: Luigi S. <gi...@li...> - 2002-05-30 04:37:04
|
At 12:02 28/05/02 -0500, Mac Reiter wrote:
>I downloaded the Beta3 installer and everything installed fine. I then
>made a trivial "Hello World" project and hit Rebuild All. I was informed
>that the required DLL MSYS-1.0.DLL was missing. After much fiddling
>around, I discovered that the rm.exe program (presumably from the new MingW
>set) is the offending program.
>...
>
Hi, Mac Reiter
I've followed your steps to reproduce the error using Dev-C++ beta3 on Win98SE;
I did not see anything concerning the DLL MSYS-1.0.DLL so can't help about
that thing, however, as in your case, there are problems with the execution
of the command "rm".
I think the problem is related to Dev-C++, in fact it assumes your system
implements the command "rm"; this is probably true for recent versions of
Windows (sorry can't check that), but is surely wrong for Win98SE and
previous versions (because the command implemented is "del").
As Colin Laplace says, you can download "rm" from the web.
My solution has been writing an elementary version of "rm" (I stored the
executable file "rm.exe", in the directory where MinGW binaries are) that
uses "del". In case you are interested, here is the code.
file: rm.cpp
-----------------------------------------------------------------------
#include <iostream>
#include <cstdlib>
#include <string>
/*********************************************************************
turn each slash ('/') in a backslash ('\\')
parameters:
s = the string with slashes
returns:
the string with backslashes
GNU "make" requires paths to be written using UNIX style (even if
here we are dealing with the Windows port of the program) while the
standard Windows command "del" requires paths to be written using the
DOS style (that is, using a backslash to delimit names of
directories).
*********************************************************************/
std::string
rev(const std::string& s);
/*********************************************************************
rm - remove a file
usage:
rm FILE [...]
arguments:
FILE = file to be deleted
... = more than one file can be specified
samples:
rm c:/foo/bar delete file c:\foo\bar
rm c:\foo\bar same as above
rm foo bar delete files: foo and bar
rm -f foo bar same as above, "-f" is ignored
This program is used in place of the Windows standard command "del"
for the following 2 reasons.
1. The standard command deletes one file at a time or more than one
file, only if the names are specified using wildcards. For instance
you can say: "del foo" or "del *.o" but you are not allowed to say
"del foo bar".
2. The standard command understands paths written using the DOS style
for paths, that is "foo\bar" and is unable to locate a file if one
writes "foo/bar".
*********************************************************************/
int
main(int argc, char** argv)
{
while (--argc && **++argv == '-')
;
if (argc == 0) // nothing to work on
std::cerr << "usage: rm FILE [...]\n";
else
{
std::cerr << "deleting ...";
while (argc--)
{
std::string file = rev(*argv++);
std::string cmd = "del " + file;
std::cerr << '\n' << file << ' ';
system(cmd.c_str());
}
std::cerr << "\ndone ...\n";
}
}
//////////////////////////////////////////////////////////////////////
std::string
rev(const std::string& s)
{
std::string p = s;
for (int i = 0; i < p.size(); i++)
if (p[i] == '/')
p[i] = '\\';
return p;
}
-----------------------------------------------------------------------
--
Luigi
gi...@li...
|
|
From: Hongli L. <h....@ch...> - 2002-05-30 08:18:31
|
On Wed, 2002-05-29 at 07:05, Luigi Santillo wrote: > Hi, Mac Reiter > > I think the problem is related to Dev-C++, in fact it assumes your system > implements the command "rm"; this is probably true for recent versions of > Windows (sorry can't check that), but is surely wrong for Win98SE and > previous versions (because the command implemented is "del"). Actually, no. rm is a Unix program. We use a Win32 port of it because DOS del sucks and because cmd.exe isn't available anywhere. But Colin included the wrong port. |