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:

  1. Anonymous9:50 pm CEST

    thanks a ton man I really needed that fix

    ReplyDelete
  2. Anonymous5:34 pm CEST

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

    ReplyDelete
  3. Anonymous1:15 am CEST

    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???

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

    ReplyDelete
  5. 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.

    ReplyDelete
  6. Anonymous7:13 pm CEST

    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

    ReplyDelete
  7. Anonymous2:07 am CEST

    Thank you, worked perfectly.

    ReplyDelete
  8. Anonymous4:02 am CEST

    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.

    ReplyDelete
  9. Anonymous6:06 am CEST

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

    ReplyDelete
  10. Anonymous9:51 am CET

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

    ReplyDelete
  11. Anonymous10:18 pm CET

    works good, thanks man.

    ReplyDelete
  12. Anonymous2:02 am CET

    MARCO IS GOD.

    THANKS FOR THIS FIX

    ReplyDelete
  13. Wonderful...Thank you very much

    ReplyDelete
  14. Anonymous2:29 am CET

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

    ReplyDelete
  15. SWEETNESS YOUR LIKE JESUS...

    ReplyDelete
  16. 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.

    ReplyDelete
  17. Anonymous10:39 am CET

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

    ReplyDelete
  18. Anonymous11:30 am CEST

    thanks, saved me some cursing

    ReplyDelete
  19. 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.

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

    ReplyDelete
  21. 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! :-(

    ReplyDelete
  22. 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.

    ReplyDelete
  23. This comment has been removed by the author.

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

    ReplyDelete
  25. Anonymous4:25 pm CEST

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

    ReplyDelete
  26. 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.

    ReplyDelete
  27. Anonymous2:49 am CEST

    THANKYOU!

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

    ReplyDelete
  29. Anonymous8:02 pm CET

    Thanks

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

    ReplyDelete
  31. Anonymous11:44 am CEST

    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,

    ReplyDelete
  32. Anonymous12:21 pm CEST

    Hi guys,

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

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

    ReplyDelete
  34. timoshenko5:26 pm CEST

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

    ReplyDelete
  35. Anonymous7:29 am CEST

    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

    ReplyDelete
  36. Im from Portugal. ThkYou.

    ReplyDelete
  37. Anonymous7:13 pm CET

    Dude, you rock! Thx from Poland :)

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

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

    ReplyDelete
  40. Anonymous12:26 pm CET

    thnkz a lot man ! It worked Just Fine

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

    ReplyDelete
  42. Anonymous1:11 pm CET

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

    ReplyDelete
  43. thanks. klima shopping service

    ReplyDelete
  44. Anonymous4:27 am CET

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

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

    ReplyDelete

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

    ReplyDelete