Wednesday, February 8, 2012
 
 

Dev C++ on Vista!

Does your desktop/laptop runs Windows Vista and have you ever tried compiling program using Dev C++ ?

For those who don’t know about Dev C++,

Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it’s compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.

One fine day, I tried compiling my program on Dev C++ ( My OS is windows Vista ) and it failed! The compilation process failed and it gave an error

gcc: installation problem, cannot exec ‘cc1′: Invalid argument

Oh! It says about installation problem and I thought my installtion of Dev C++ was successful as it gave NO error. Well, I googled a bit and different pages leads to me different solution. I tried some of them and finally gave up as they were leading me nowhere.

I started from the scratch! Yes, I uninstalled Dev C++, reinstalled it again with administrator privilegs. (Right click on the Dev C++ executable, and click on “Run as administrator”). Next, I located cc1 executables ( which should be in <DevCPP_Install_Dir>\libexec\gcc\mingw32\3.4.2 ) and added the same location in PATH variable. ( Computer -> Properties -> Advanced System Settings -> Advanced Tab -> Environment Variables ).

This part did solve the problem! It completed the compilation part, but while linking ( ld ), it again failed. This part really stuck me for some time. Later I realized that the files which needs to be compiled through Dev C++ should be in the same drive where Dev C++ is installed. I couldn’t find a solution where I can place files to other drive of the system and compile it as well. Do let me know if you find something!

Share and Enjoy:
  • Digg
  • Twitter
  • Facebook
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Turn this article into a PDF!
  • E-mail this story to a friend!
  • Slashdot
  • Yahoo! Buzz
  • Yahoo! Bookmarks
  • Google Bookmarks
  • LinkedIn
 

Tags: ,

Comments: 3

(comments are closed)

 
 
 

 

Find Me!
View Kunal Kumar's profile on LinkedIn