Setting up Dev C++

This is a discussion on Setting up Dev C++ within the Tech Board forums, part of the Community Boards category; I just upgraded to the newest Dev C++ compiler, and I can't figure out how to put the default code ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Kansas City
    Posts
    76

    Setting up Dev C++

    I just upgraded to the newest Dev C++ compiler, and I can't figure out how to put the default code in
    Code:
    #include<iostream>
    int main ()
    {
    
    system ("pause");
    return 0;
    }
    In the compiler that I used previously (version 4.0) one would go to Envirement Options -> Misc tab, but I don't see this option anywhere.

    Could some one please point me in the right direction.

    Nevermind I go it (its under tools -> editor options - > code -> default source )
    Last edited by Suchy; 11-10-2006 at 07:31 PM.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I can't figure out how to put the default code in
    The default code is broken. Besides, it's no effort to key it in manually from an empty project and do it right from the start:
    Code:
    #include <ios>
    #include <iostream>
    #include <limits>
    
    int main()
    {
      // Add your code here
    
      std::cin.ignore ( std::numeric_limits<streamsize>::max(), '\n' );
      std::cin.get();
    }
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Location
    Kansas City
    Posts
    76
    Thanks for the tip, I also have another problem. Everytime I hit compile, I het the status screen that it is done without any errors, but the .exe file does not show up anywhere the source file is.

    Also when I hit run, compile & run or debug I get the warning message that the "source file [is] not compiled".

    Why is this happening, is it because I am running on Win Vista Beta ?
    Last edited by Suchy; 11-10-2006 at 08:03 PM.

  4. #4
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Have you looked under the compile log? Linker errors, mayhaps?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  5. #5
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    Quote Originally Posted by Suchy
    but the .exe file does not show up anywhere the source file is.
    Go to Project Options->Build Options and make sure the EXE output directory is blank. This will default it to the same directory as the source files.
    Using Code::Blocks and Windows XP

    In every hero, there COULD be a villain!

  6. #6
    Registered User
    Join Date
    Sep 2006
    Location
    Kansas City
    Posts
    76
    Did that , and still same thing, even in Win XP.

    What the heck is going on ?

  7. #7
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I just upgraded to the newest Dev C++ compiler
    What do you mean upgraded? In the Dev-C++ installation it says "Do not install this over a previous installation"
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #8
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    So run the uninstall app and then reinstall.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  9. #9
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    Posts
    158
    Quote Originally Posted by maxorator
    What do you mean upgraded? In the Dev-C++ installation it says "Do not install this over a previous installation"
    You're extremely annoying.

    Sorry, i had to get it out.

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    You're extremely annoying.
    Giving advice should not annoy you, especially if you don't have anything to do with this thread.

    I've installed Dev-C++ many times and I've never got any problems. You must be doing something wrong.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  11. #11
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    Posts
    158
    That's not advice, that's nitpicking. Anybody with common sense would know what he meant. Even with that aside, it's totally irrelevant.

  12. #12
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    If by the latest version you mean 4.992, it is best to make sure you have 100% uninstalled the previous version of DevC++. Oh, and maxorator is correct..

    You do get a message up warning you to not install over a previous version.

    The best thing to do, is uninstall the software, re-install 4.992 version slowly and
    check the boxes that appear on start up if they apply to you. When you are satisfyed with this, clickOK then when you load the application, do a "dummy run".

    Create a very small program, ie: hello world, then compile and run it. If the screen flashes up and goes away in a second, add cin.get() before return 0 to prevent this from happening.
    Any other problems, you can go to bloosheds website and enquire, also the help files
    have some usful information too
    I'm just trying to be a better person - My Name Is Earl

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Whats better, C-Free or Dev C++??
    By i_can_do_this in forum Tech Board
    Replies: 10
    Last Post: 07-07-2006, 05:34 AM
  2. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  4. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 1
    Last Post: 03-08-2004, 05:19 PM
  5. Your favourite fantasy game setting?
    By fry in forum Game Programming
    Replies: 4
    Last Post: 10-16-2002, 07:26 AM

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