Thread: MinGW Path help

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    13

    Exclamation MinGW Path help

    Im running on windows xp and im trying to learn C.
    I have a book that will teach me. But first i had to install MinGW.
    and i did.
    and then i had to alter the Path in the system so the command prompt can read it.

    but

    I screwed up. instead of adding C:\MinGW\bin to the path i replaced the whole thing to read C:\MinGW\bin
    ya thats a problem becouse i cant get any response to gcc-v on the command prompt.
    also when i go to the command promt it reads
    C:\Documetns and Setting\Owner.YOURbla bla bla bla
    not just C: so what do i do know i have everything installed i used the mingw exe 5.3 version i just cant get anything to work
    oh by the way i am completely knew to this Im just a newborn to programing

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by Makachu View Post
    also when i go to the command promt it reads
    C:\Documetns and Setting\Owner.YOURbla bla bla bla
    not just C:
    type:
    Code:
    cd \

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    http://csjava.occ.cccd.edu/~gilberts/mingw/
    scroll down to step 3

    As for the defaults
    Quote Originally Posted by echo %PATH%
    c:\windows\system32;c:\windows
    Unless I've totally missed what you're asking... Which is?
    Last edited by zacs7; 08-01-2007 at 09:09 PM.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I screwed up. instead of adding C:\MinGW\bin to the path i replaced the whole thing to read C:\MinGW\bin
    If you did that inside a command prompt, no harm done: just close the prompt and open a new one, and you'll get the default path once again.

    If you changed that inside autoexec.bat, like went PATH=C:\... instead of PATH=%PATH%;C:\..., just modify it to be how you wish.

    If you changed the path inside the Windows settings dialogs, I don't know what you're going to do.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    13
    Well thanks to all i just had to type in cd\
    and ya I changed it in the windows setting
    but its working good now
    hope this doesnt come back to bite me in the butt later
    thank you guys very very much

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Shortest Path Maze Solver (Breadth Search Help)
    By Raskalnikov in forum C Programming
    Replies: 5
    Last Post: 04-07-2009, 07:41 PM
  2. clipping path
    By stanlvw in forum Windows Programming
    Replies: 0
    Last Post: 07-23-2008, 11:47 PM
  3. Shortest path problem
    By Digitalxero in forum C++ Programming
    Replies: 0
    Last Post: 10-25-2005, 05:32 PM
  4. Path Finding Using Adjacency List.
    By Geolingo in forum C++ Programming
    Replies: 7
    Last Post: 05-16-2005, 02:34 PM
  5. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM