Does Dev C++ 4 even work in Vista?

This is a discussion on Does Dev C++ 4 even work in Vista? within the C++ Programming forums, part of the General Programming Boards category; Hi there, How did you make Dev C++ 4 work in Vista? I tried both 4 and 5 in my ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    48

    Does Dev C++ 4 even work in Vista?

    Hi there,

    How did you make Dev C++ 4 work in Vista? I tried both 4 and 5 in my Vista, and they don't work out. I will appreciate it greatly!

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,883
    This thread was a post moved from I need C++ Compiler for MS Windows Vista.

    If you want to use Dev-C++, use version 5 (or rather, 4.9.9.2). If that does not work, try the MinGW port of g++, which is the compiler used by Dev-C++ by default. If that works, you can use it with some other IDE, e.g., Code Blocks, Eclipse or Netbeans. If not, MSVC9 (from Microsoft Visual C++ 2008) is your best bet.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    58
    Hi,

    Can you define work in more detail?

    1) it will not load?

    2) when it is loaded, it will not open enviroment?

    3) i cannot compile my code?

    If it installs fine, make sure when the icon pops up on desktop, right click on it, (um cant remember this bit exactly), but there is a compatable mode, select this and select xp mode. After this step it should run ok.

    Hope this helps.

  4. #4
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    I had a problem compiling on Vista. Turns out saving the code in MyDocuments caused the error. I don't know if this is the problem, but hope it helps a little.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    58
    Hi,

    Ok here is a long shot, i was using my embedded c compiler when vista first came out and i could not update my txt.c file when i ran or compiled my code. The solution was to go to my folder in my documents, right click on the folder and change the security paramerters on it - i think it could only read and not write to this folder. When i had changed this, it worked fine - vista has more security fetures over xp.

    As i said this is a long shot, but since that happened i have changed the security setting of my code folder and all seems ok with dev-c++ as well as my embedded c compiler.

    Hope this helps.

    tuurbo46

  6. #6
    Registered User t3chn0n3rd's Avatar
    Join Date
    Dec 2007
    Location
    kansas city
    Posts
    25
    I am using the Visual C++ compiler

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,756
    Alternatively, run the app as admin to avoid this crap altogether.
    You can set run as admin on the compability tab in the properties.
    Or you should save to a directory you have write permission to - like your documents folder.
    Or %AppPath%.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    4
    Hi.
    I didn't find any post that could help me with my problem, even a simple program like this, i still can't it get to work. I've tried some compilers that can't compile the same code, everyone of them use "their own way of writing c++" i don't understand why that's so, still i tried to compile this one,
    Code:
    #include <iostream>
    
    int main()
    {
    	std::cout << "Hello world!" << std::endl;
    	return 0;
    }
    i got this as a result.
    File Line Message
    main.cpp 1 iostream: No such file or directory
    main.cpp 5 error: `cout' is not a member of `std'
    main.cpp 5 error: `endl' is not a member of `std'

    Could anyone at least tell me what was wrong? (im using windows wista, Code::Blocks v1.0)
    and i heard something about libstdc, but dont really get it how to get that to work.
    Last edited by 2Newbie; 02-06-2008 at 11:49 AM.

  9. #9
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    I'm not familiar with codeblocks - but you have somewhere to specify the include files location, currently compiler is not able to find a file iostream
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  10. #10
    Registered User
    Join Date
    Dec 2007
    Posts
    4
    Thank you, that tells at least something ^_^

  11. #11
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    When I installed Dev-C++ 4.9.9.something under Vista, it didn't set the PATH, even though I ran the installer as the administrator. If you were getting errors to the effect that gcc/g++ could not be executed, you're likely having the same problem. To do it manually, do something like this:
    1. Click start.
    2. Right-click on Computer, and click properties.
    3. Choose Advanced settings, or something -- it's a hard-to-see link on the left hand side of the screen. It's the last link in the list, I believe.
    4. Choose the Environment Variables tab, or something.
    5. Add ;C:\Dev-C++\Bin to the end of the PATH variable.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  12. #12
    Registered User
    Join Date
    Dec 2007
    Posts
    4
    The path is to Dev-C++, (i got that compiler to) but i used CodeBlocks
    (If wondering why, i tried to fix the SDL thing, but it doesn't work, can't even compile)

  13. #13
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    Wait -- you're trying to get SDL programs to compile? That's a bit tougher. I suggest you try reading this: http://lazyfoo.net/SDL_tutorials/index.php

    However, there is a DevPak for the SDL that makes installing the SDL under Dev-C++ a cinch. Or so I hear. You might want to have a look at it.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  14. #14
    Registered User bradszy's Avatar
    Join Date
    Jan 2008
    Posts
    114
    Quote Originally Posted by 2Newbie View Post
    Hi.
    I didn't find any post that could help me with my problem, even a simple program like this, i still can't it get to work. I've tried some compilers that can't compile the same code, everyone of them use "their own way of writing c++" i don't understand why that's so, still i tried to compile this one,
    Code:
    #include <iostream>
    using namespace std;
    int main()
    {
    	cout << "Hello world!" << endl;
    	return 0;
    }
    Could anyone at least tell me what was wrong? (im using windows wista, Code::Blocks v1.0)
    and i heard something about libstdc, but dont really get it how to get that to work.
    Fixed.


    BTW: I use vista and Dev 4.9.9.2. Everything works.
    Last edited by bradszy; 02-07-2008 at 12:03 AM.

  15. #15
    Registered User
    Join Date
    Dec 2007
    Posts
    4
    Well, thanks for that, was on that site, and SDL are working ^_^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-17-2008, 11:36 AM
  2. getting SDL to work with Dev-Cpp
    By linucksrox in forum Game Programming
    Replies: 5
    Last Post: 10-24-2005, 11:43 AM
  3. First Vista virus
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-11-2005, 10:39 PM
  4. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  5. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 07:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21