Thread: DevC++ EXE's

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    2

    Question DevC++ EXE's

    Hi everyone!

    I'm am new to these forums and cout<<"A COMPLETE NEWBiE iN C++ AND PROGRAMMiNG!\n";
    Funny, ain't I? (NOT!)

    I'm using the latest DevC++ package and I'm trying to follow the tutorials on this site.
    I am currently at Lesson 1, and have written the first program.
    It compiles and runs, so far so good, but I wonder why the compiled EXE becomes 464 KB in size?
    It seems that DevC++ adds alot of additional code to it...

    Does anyone have an explanation to this?

    P.S. I have not RTFM of DevC++...

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    It sounds like your compiling a debug build.

  3. #3

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    2
    Thx for the replies Quantum1024 and Dante Shamest!

    I haven't fiddled with any settings in DevC++, so I don't think I'm compiling a debug build, unless it's a feature that's on by default.

    Do you have any suggestions to another way I can write/compile the program, so that it becomes smaller?

  5. #5
    Registered User
    Join Date
    Jan 2006
    Location
    Washington D.C.
    Posts
    25
    While you actually have a project open go to:

    Project->Project Options

    In that window go to the Compiler Tab and click on "Linker"

    In the window next to it make sure "Generate Debugging Information" is No, and "Strip Executable" is Yes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do you create exes from your c++ program?
    By Anubis208 in forum C++ Programming
    Replies: 22
    Last Post: 04-25-2008, 08:04 PM
  2. Linking DLLs to EXEs
    By code2d in forum Windows Programming
    Replies: 2
    Last Post: 01-02-2007, 11:35 AM
  3. Uploading exe's
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 05-20-2005, 08:42 PM
  4. Starting independent exes from inside a c program
    By phil_drew in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 11:27 PM
  5. EXEs too big
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 07-07-2002, 11:34 AM