Franscape Development Tutorials
You are currently viewing the Dev-C++ (/MinGW) On Vista tutorial, in the 'MISC' category.
-----------------

As one may expect, default environmental variables for Dev-C++ (really, MinGW, the actual compilation console) are configured differently for XP than they should be for Vista.

As a result, a fresh download/install straight from the Bloodshed website will yield a path error when you attempt to compile code on a Vista system. This error is typically the following:

Quote:
gcc.exe "C:\Users\Name\PATH\file.c" -o "C:\Users\Name\PATH\file.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -L"C:\Dev-Cpp\lib"
gcc.exe: installation problem, cannot exec `cc1': No such file or directory

Execution terminated
Compilation successful


In other words, the system is attempting to perform the compilation functions (the method of compiling and linking), which are located inside a file that it cannot find - cc1.exe. However, this file was indeed extracted from the installer and does exist on your computer - you simply have to point Dev-C++ to its precise location.

(1) Go to.. Tools -> Compiler Options -> Directories tab
(2) Add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" to the Binaries subcategory
(3) Go to the Programs tab and add "c:\dev-cpp\bin\" in front of all the program names in the fields.

You should now be able to compile without fail.

This has been tested on Vista Business Edition and Vista Home Premium.

-----------------
· Discuss this and other tutorials on the FS Forums.
· Return to the MISC tutorial listing.
· Return to the Tutorial Overview.
· Return Home.
Back.
Sponsored Links - Register and/or Login to remove it