For those of you who still face problems with running gcc (using MingW) on Windows Vista and see the error "Could not exec cc1plus" try out the following.
If you're using an IDE (I use Code::Blocks) then go to your Compiler settings (Settings>Compiler Settings>Programs for Code::Blocks v1.0, rc2) and just add an additional path to the directory that contains the cc1plus.exe file. In my case it is located in "C:\MinGW\libexec\gcc\mingw32\3.4.5"
and would be located in a similar location on your computer assuming you've installed MingW in the root folder of your C drive and have installed gcc version 3.4.5.
Once you've added this path to your Compiler paths you should be ready to run!
In case you dont use any IDE and are more of a "Command Line" geek then just add the path to the aforesaid file in your "Path" environment variable. You could do that by pasting the following line at Command Prompt, again assuming that you have installed gcc version 3.4.5 and in the root folder of your C drive (C drive).
"PATH path %path%;c:\mingw\;c:\mingw\bin;c:\mingw\libexec\gcc\mingw32\3.4.5\"
Happy Coding!
No comments:
Post a Comment