#660 g++ can't see command line args in MSYS

MSYS (75)
Laura Eaves

MinGW-3.1.0-1.exe, and MSYS 1.0.1 installed in
C:\MinGW: I run MSYS and type gcc --version or g++ --
version and neither is able to see the command line
argument. When I run g++.exe in the DOS command
shell, it does see the command line args, so I assume
the problem is in MSYS -- the OS is Windows XP Home
with SP2


  • Luke Dunstan

    Luke Dunstan - 2004-10-11
    • status: open --> closed-invalid
  • Luke Dunstan

    Luke Dunstan - 2004-10-11

    Logged In: YES

    You cannot install MinGW and MSYS into the same directory.
    Please remove them and start again.

  • Laura Eaves

    Laura Eaves - 2004-10-13

    Logged In: YES

    I tried uninstalling MSYS and also going in and removing all
    the MinGW and MSYS files on the C drive and reinstalled both
    packages in their original default folders -- MinGW installed
    into C:\MinGW and MSYS went to C:\MSYS\1.0.1 -- also,
    during the MSYS installation, I was prompted to answer
    whether I wanted to link to an existing installation of MinGW,
    which I had previously installed, and so I said yes. But when
    it was finished, I ran MSYS and tried running g++ and it
    couldn't be found. I tried looking in the MinGW subfolder in
    the MSYS installation, and noticed it was empty, so I
    replaced that folder with a shortcut to C:\MinGW and tried
    running the compiler again, but again it couldn't be found. So
    please tell me how to install this stuff so it will work! Request
    urgent! Thank you very much! (I know it must be a mistake
    on my part as others I know have gotten it to build
    successfully, but I can't get it to work, and have already
    wasted a huge amount of time downloading and repeatedly
    installing and trying to get the environment to work. Thanks
    in advance for any solution! --le

  • Earnie Boyd

    Earnie Boyd - 2004-10-13

    Logged In: YES

    From the MSYS window, what is the output of ``cat /etc/fstab''?

    For a larger audience you should post your questions to



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks