Menu

cannot exec cc1

2007-08-05
2012-09-26
  • Nobody/Anonymous

    Hi. I'm using Dev-cpp version 4.9.9.2 on windows xp. I recently started getting the error "installation problem, cannot exec cc1: No such file or directory". I looked to see if the file may have been accidentally deleted, but it was still there, so I tried reinstalling it several times, as well as checking for updates for mingw. This did not work, so I tried adding the path to cc1.exe to the PATH variable. This did not work either. I tried renaming my source file as a .cpp so dev-cpp would use cc1plus instead, but this returned the same error for cc1plus. This happens with any code i try to compile, including a simple Hello World program. I recently reinstalled XP after having Linux on my computer for a month, so I suspect it may have something to do with that, though I have no clue what could have changed since I backed up my old XP image and reinstalled it from that. Here is my compile log:

    Compiler: Default compiler
    Executing gcc.exe...
    gcc.exe "C:\Dev-Cpp\Untitled1.c" -o "C:\Dev-Cpp\Untitled1.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    cpp: installation problem, cannot exec `cc1': No such file or directory

    Execution terminated

    Any help would be greatly appreciated.
    -Ronin

     
    • Wayne Keen

      Wayne Keen - 2007-08-05

      Ronin,

      "I tried reinstalling it several times"

      Did you follow the directions for doing a clean uninstall that are in the "Please Read" thread?
      (Hint: There are some very forceful suggestions in there about reporting what you did in there)

      You should also note (this is probably not your problem) that Clifford and others have noted occasional
      issues when compiling files from within the Dev directory.

      Wayne

       
    • Anonymous

      Anonymous - 2007-08-05

      Don't put your projects in c:\dev-cpp or any sub-folders thereof. Apart from being a really bad idea, their is a bug in Dev-C++ that sometimes causes it to fail when projects are stored there.

      Clifford

       
    • Nobody/Anonymous

      Thank you for respnding. Yes, I did follow the instructions on removing dev-cpp completely. Also, I originally had my project in a seperate folder in the root. I have encountered problems with other programs that required source files to be in the same directory as the executable, so I thought I would try that here.
      -Ronin

       
    • Anonymous

      Anonymous - 2007-08-05

      Since this looks similar to the problem of using Dev-C++ on Windows Vista, you might try the same solution - see the "PLEASE READ BEFORE POSTING A QUESTION" thread for a link to the solution.

      BTW, you may recall Wayne wrote "(Hint: There are some very forceful suggestions in there about reporting what you did in there)", so by bet is that you will really have rubbed him up the wrong way now! ;-)

      Clifford

       
    • Wayne Keen

      Wayne Keen - 2007-08-05

      "Yes, I did follow the instructions on removing dev-cpp completely."

      No you didn't. Go back and read them again. Note how they make a HUGE hairy point
      that your should tell us EXACTLY what you did if you have any problems, and not
      make a meaningless statement about followig the directions, like, well, you did.

      I tried to warn you. ;)

      Wayne

       
    • Nobody/Anonymous

      I apologize, Wayne. I only read the steps to remove dev and not the section following. First I ran the uninstall program. The first time I uninstalled it, the dev directory was still there, so I deleted it, but the rest of the times, the uninstall program removed the directory on its own, so there was no need to. After that, I deleted the two configuration files as well as their containing directory, which was in C:\documents and settings\user\application data. Then I rebooted, downloaded the setup program again, and installed it in the default C:\dev-cpp. And Clifford, thank you. I'll try that.
      -Ronin

       
    • Wayne Keen

      Wayne Keen - 2007-08-05

      You give no indication that you did a search to look for any other Dev related files...

      "two configuration files as well as their containing directory"

      I don't think that was a good idea - are you saying you removed "Application Data"?

      Wayne

       
    • Nobody/Anonymous

      Sorry for not being clear. In the Application Data folder, there is a folder named Dev-Cpp. This is where devcpp.cfg and devcpp.ini are located. I deleted the entire directory. I did not do a search for other dev related files because I didn't see instructions saying to do so, aside from where it says to search for the config files.

       
    • Nobody/Anonymous

      Sorry, I didn't sign the last post.
      -Ronin

       
      • Wayne Keen

        Wayne Keen - 2007-08-05

        It is vital that you remove all traces of Dev when you go through this process.

        Taking the time to search for anthing that might have gone in that is peculiar to
        your installation is time well spent. Make sure to configure windows search to look
        in hidden folders.

        Wayne

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.