Christian Gudrian wrote:
> I have just downloaded the most recent version of MingW and MSYS.
> Now I have the problem, that MSYS obviously does not pass on command
> line options to the called progam.
> Example using MSYS:
> Gudrian@... ~
> $ gcc --version
> gcc.exe: no input files
> The --version parameter is not passed on to gcc.
IIRC, this happens when you ignore the installation instructions,
and install MSYS and MinGW into the same tree -- you MUST NOT put
MinGW binaries into the MSYS /bin directory.
> When I use CMD.EXE, everything works as expected:
> C:\msys\bin>gcc --version
> gcc (GCC) 3.4.2 (mingw-special)
> Copyright (C) 2004 Free Software Foundation, Inc.
And this tends to confirm that you have installed incorrectly.
You should remove your entire C:/msys directory tree, and reinstall
correctly. The default installation paths are `C:/MSYS/1.0' for MSYS,
and `C:/MinGW' for MinGW. I recommend that you stick with these
recommended defaults -- you may change the drive designator, if that
suits you better, but it's best to keep the same paths otherwise.
After installation, /etc/fstab in your MSYS tree should have the
mount specification `C:/MinGW<tab>/mingw' -- (N.B <tab> is the single
ASCII TAB character).