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?
gcc's current directory might be messed up. How are you executing gcc?
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.
How do you make more than one path? Why is this problem specific to Vista?
Yea your right I tried it on XP and it worked.
I don't know how to add an environment path in Vista, but I'm sure you can find something in google.
Here ya go buddy... Here is the answer.
MinGW with Vista
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.
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
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
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:
In order to get Dev-C++, which uses MinGW, to work right on Windows Vista just follow these steps here.
Dev-C++ with Vista.
Cool thanks a lot for the reply.