Tuesday, 5 June 2007

Vista and Dev-Cpp


For unexplicable reasons, Dev-Cpp does not compile correctly under Windows Vista.

It seems that Microsoft's OS messes up with environment paths, or something.

After a morning of swears and curses, I found a post on SourceForge's forum, featuring a workaround.

All you have to do is:
  1. go in "tools > compiler options", move on "directories" tab and add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2"
  2. go in "programs" ad put "C:\Dev-Cpp\bin\" before any executable name
Naturally, put no quotation marks and eventually replace C:\Dev-Cpp\ with your Dev-Cpp installation folder.

This seems to work. Upsetting anyway.

48 comments:

Anonymous said...

thanks a ton man I really needed that fix

Anonymous said...

I also needed to click on the "C includes" tab and add:
C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include

Anonymous said...

I followed all the instructions that were displayed on this page step by step, and It the still didnt it allow me to compile in Dev-Cpp....what versions Of
Dev-C ++ can WINDOWS VISTA SUPPORT???

Unknown said...

I use the version 5 last beta... what kind of error does it return to you?

Viktor said...

This worked perfect for me, thanks alot! I was almost about to reinstall xp just because of this. Strange thing is Visual Studio 2008 has the same issues for me, but I couldnt find a fix for it.

Anonymous said...

Thankyou SO MUCH for this, I was going insane...

Kept getting "Source file not Compiled" whenever I pressed 'compile&run'.

This has it fixed :D

Anonymous said...

Thank you, worked perfectly.

Anonymous said...

I have followed the instructions to fix Dev C++ 5 for Vista, but it is still not working. If you have more suggestions, please e-mail me at scanny8537@gmail.com

Thanks.

Anonymous said...

Thanks a lot !!!! Why do these guys screw up every thing which works fine with windows xp ?

Anonymous said...

hey, thanks a lot,
finally I could compile my programs.

Anonymous said...

works good, thanks man.

Anonymous said...

MARCO IS GOD.

THANKS FOR THIS FIX

MyTechTroubles said...

Wonderful...Thank you very much

Anonymous said...

Thank you so much!! You helped me a lot fixing Dev-C++ to work for Vista! :)

Michael Melice said...

SWEETNESS YOUR LIKE JESUS...

stormbeta said...

Still getting nothing. It looks like it's trying to load the compiler executables from my project folder instead of the Dev-Cpp folder, like it's ignoring my directory settings altogether.

Anonymous said...

i have tried all your instructions,but i m getting trouble with stdio.h

Anonymous said...

thanks, saved me some cursing

Unknown said...

For Link Exchange

As your blog and my blog has same theme. I would like to share link with your blog. this will help to improve our rank in search engine.
my link detail
Title : vista guide
URL :- http://vista-basic.blogspot.com/


After providing link to my blog kindly mail me with ur title(keyword) and URL on this id.
laptopfriends@gmail.com

my blog's google page rank is 3. I suggest u to increase your page rank to get good link back and rewrite your title and decription that will increase your search engine ranking. Need any help u can ask me.

Ice Princess said...

Hey thax, but, i didnt understand the second step, what do u mean go toprograms? where??

Ice Princess said...

i ment go in progrms.

go in "programs" ad put "C:\Dev-Cpp\bin\" before any executable name
-where?

Naturally, put no quotation marks and eventually replace C:\Dev-Cpp\ with your Dev-Cpp installation folder. ???

PLLLZ help! :-(

Unknown said...

I assume you followed all steps before the "programs" thing.

in this moment, you are supposed to have the "compiling options" window in front of you. In the upper side of this window there should* be four "tab button":

- compiler
- code generation/optimizations
- folders
- programs <-----

click on "programs" and follow the remaining steps. let me know :)

* I'm sorry if there's some naming mistake, but I have an italian localization of DEV-CPP.

Ice Princess said...
This comment has been removed by the author.
Ice Princess said...

thank u so much! its now working!! i wished i knew what it ment that thing ive done. but still, it works! :-)

Anonymous said...

THANK YOU!!!
I've been strugling with that thing for days.
God bless you!!!

Vikram Gupta said...

Sry if its already answered, but I got the same problem and what I did was:
1. Click tools->compiler options
2. uncheck the box that says "Add the following commands when calling compiler."

It worked for me.....just give it a try if u have the same prob.

Anonymous said...

THANKYOU!

Jessica @ Jessiker Bakes said...

LOVE YOU SOOOOO MUCH!!!
I was trying to fix this for hours since last night. Thanks!!!

Anonymous said...

Thanks

Laurent said...

Thanks, helped me out. I really hope that the developers will take care of this issue.

Anonymous said...

Hi Guys,

Please Help me, I am really frustrated... I am having the same problem.

I followed the steps, given above,

1. Open up BloodShed and a simple program.
2. Click on Tools -> compiler options-> directories
Under directories, there are still 4 tabs (Binaries, libraries, C Includes, C++ Includes)

Question: should I add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2"
on all 4 tabs?

3. Then when i go in programs there is no option there where I can
- ad put "C:\Dev-Cpp\bin\" before any executable name

I have in there gcc, g++ etc.

Please help me..I really appreciate it,

Anonymous said...

Hi guys,

I finally figured it out what i am doing wrong, my dev-cpp is perfectly working now! thank you very much!

freestyle mathmatics said...

Thank you so much. I spent a day and a half figuring out the problem is Windows Vista and not Dev-C++.

timoshenko said...

Great
Thanks a lot, I had already wasted infinite time and was about to shift to visual studio. The fix was a lifesaver

Anonymous said...

The step says:

"Naturally, put no quotation marks and eventually replace C:\Dev-Cpp\ with your Dev-Cpp installation folder."
What does it mean????????

Please reply me soon at dishant_ag810@yahoo.com

TiagoT said...

Im from Portugal. ThkYou.

Anonymous said...

Dude, you rock! Thx from Poland :)

SHEETAL said...

THANKS A LOT , A STEP BY STEP GUIDE ,& VISTA PROBLEM SOLVER ,HELPED IN INSTALLING IT PROPERLY

SHEETAL said...

THANKS A LOT , A STEP BY STEP GUIDE ,& VISTA PROBLEM SOLVER ,HELPED IN INSTALLING IT PROPERLY

Anonymous said...

thnkz a lot man ! It worked Just Fine

omegle said...

Thanks so much for this! This is exactly what I was looking for

Anonymous said...

I really like your post. Will continue reading your blog. :)

klima servisi said...

thanks. klima shopping service

klima servisi said...

nice site Good luck

Anonymous said...

Thankyou very much, I'm moving programs from my XP and was frustrated with this issue. Kudos for you ^ ^

klima servisi said...

Thankyou SO MUCH for this, I was going insane...

kombi servisi said...

nice blog

electrolux said...


Anonymous said...
thanks a ton man I really needed that fix