How do I install the GNU C++ compiler?


I just got a book with the compiler on a disc and I need some help installing it. It says I need to install it in an MS-DOS command window, which is the command prompt, but I don’t know how to get rid of this:

C:\Documents and settings\My Name>

So how do I get rid of it and how do I install it, because the instructions confuse me.
I need to know how to get it to just C:\ to install it

3 Responses to “How do I install the GNU C++ compiler?”

  • Jason C:

    Isn’t GNU GCC only on non-Windows environments? The only way you can install it on Windows is through Cygwin if I’m not mistaken?

  • David Karr:

    You want to know how to "get rid of it"? Get rid of what? The string you show there looks exactly like what you would see at the DOS command prompt.

  • jplatt39:

    cd is the command to change directories. Since MS-DOS is derived from UNIX (indirectly) .. — two periods — is the symbol for the parent directory — the directory above. So what would happen is you open it and it comes to:

    C:\Documents and settings\My Name>

    type:

    cd ..

    and your prompt should be:

    C:\Documents and settings>

    Do it again and you should get:

    C:\>

    That is the topmost directory. Do a dir and you should get a listing of directories (or folders) which are in that directory. I would assume you would want to unzip it in C:\Program Files> to install it. To get into a directory in MS-DOS you will find that you can’t use spaces in file or directory names (though you can in Windows). Anyhow (and I have to admit I haven’t used DOS since 2006 — I switched to Linux in 2004) there are two ways around this. * is a wildcard character. When you come to a space in the directory/folder name, use it and it will be read as any character or combination of characters. The second way is when you do a dir you will see two versions of the name. The first is the Windows name. The second is all in caps and usually ends with a ~1 or ~some other number. That is the MS-DOS name. You can use that. Use CD to get where you want to go and follow the directions for installing it.

Leave a Reply