Thread: MinGW

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    266

    MinGW

    I tried downloading and running MinGW but when ever I try compiling a .c file it gave me an error saying

    gcc: installation problem, cannot exec 'cc1': No such file or directory

    however I did notice that there is a file with that name in the libexec file
    Any ideas how to fix this?

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    gcc's current directory might be messed up. How are you executing gcc?

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    No... This sounds like you are using Windows Vista. You need to find the cc1.exe path and add it to your PATH environment variable. Its a quirky Vista issue.

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    How do you make more than one path? Why is this problem specific to Vista?
    Last edited by lruc; 08-29-2008 at 12:38 PM.

  5. #5
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Yea your right I tried it on XP and it worked.

  6. #6
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    I don't know how to add an environment path in Vista, but I'm sure you can find something in google.

  7. #7
    Registered User
    Join Date
    Aug 2008
    Posts
    15
    Here ya go buddy... Here is the answer.

    MinGW with Vista

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Keep in mind that that is not the PATH, but a dev-c++ option. It probably won't do anything for when you run gcc from the command line.

  9. #9
    Registered User
    Join Date
    Aug 2008
    Posts
    15
    @robwhit

    You are correct sir. I am aware of what you have said, but I guess I didn't think through the OP's question
    or my answer thoroughly enough. Sorry! To anyone who reads this please disregard post #7.

    The OP Iruc has no doubt already found out how to make the necessary changes for Vista's system
    environment variables, but I might as well just post the correct answer for good measure anyway.

    ================================================== =======================
    In order to set the correct PATH for cc1.exe and gcc.exe for MinGW Ver. 3.4.5 on Vista you can do the
    following:

    Go to Control Panel > System and click on "Advanced system settings". Then select the Advanced tab. Then
    look to the bottom and click on Environment Variables. Next Look to the "System variables" box and scroll
    down to the variable "Path" and click "Edit...". Then add at the - end - of the variable values the
    following:

    ;C:\MinGW;C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.5


    This assumes that MinGW is installed at directory "C:\MinGW".
    -------------------------------
    Another way would be to enter regedit in the start menu, and click on regedit.exe.
    Then go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment".
    In the right hand side window right click "Path", and then click "Modify...".
    Same as before, add the following to the - end - of the variable values:
    ;C:\MinGW;C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.5
    ================================================== =============================
    In order to get Dev-C++, which uses MinGW, to work right on Windows Vista just follow these steps here.
    Dev-C++ with Vista.


    Good day!
    Last edited by JimmyJones; 08-30-2008 at 06:13 PM.

  10. #10
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    Cool thanks a lot for the reply.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mingw and elcipse HELP
    By Rob4226 in forum Windows Programming
    Replies: 1
    Last Post: 03-04-2008, 01:35 AM
  2. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  3. compiling mingw to enable timeSetEvent
    By underthesun in forum Windows Programming
    Replies: 2
    Last Post: 02-02-2005, 06:00 PM
  4. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  5. Convert Microsoft LIB to MingW compatible lib
    By tigs in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2004, 06:53 PM