Tuesday, July 26, 2011

Dev-C++ released

This one fixes some urgent stuff I found with the debugger together with a load of other stuff. Oh, by the way, this version has been tested extra long and comes with the first user reported bug!

Changes - Version - 26 Juli 2011
  • Function candidates are now properly listed and formatted.
  • When code completion was disabled, block tabs/untabs weren't working.
  • Added formatting for the rare 'candidate is' (when there's one candidate of course) message.
  • Removed the include\sys directory from default auto includes. It was conflicting with ctime/time.h.
  • Updated a few English window and control captions.
  • Removed a faulty cast the Delhpi Debugger pointed me to.
  • Projects now open the first instead of no file in the list by default.
  • When switching between files, the statusbar (line:col and number of lines) now gets updated automatically.
  • Added formatting for "error: candidate is:".
  • Fixed a bug in the directory scanner: it used to omit every first file in any given directory.
  • Block indentation is now only triggered by tab when multiple lines are selected.
  • devDirs now saves relative paths too.

Important notices
  1. The options format has changed. If you want to reuse an old pre- config file (NOT recommended), or, more importantly, when you're overriding Compiler Options in your project, you need to re-set these project settings once and save the project. You'll then have an updated project file.
  2. This version has GCC built-in instead of being an aditional package. It also contains D3D9/10/11, GDI, Win32 and OpenGL headers and libraries in that flavor.
  3. This version is now fully portable. If you also don't want Dev to leave anything behind in the registry, please select "Portable" or "Minimal" in the setup options.
  4. For ultimate portable programming, please launch devcppPortable.exe.lnk located in the main folder of the portable zip download. This will make dev save its configuration files in the same folder as the executable.

The setup can be downloaded here. The Portable zip version can be downloaded here. The source code can be found here.

  • FIXED: The uninstaller's version string is lagging (it reports
  • FIXED: 'unknown escape character' lacks formatting.
  • FIXED: Portable configuration files are now saved in root\config instead of root. Dev refuses to create config folders (and root was getting messy).
  • FIXED: The Simple Window example now has a working project (main.c should be main.cpp).
  • NOT FIXED: Dev-C++ crashes when it tries to terminate console programs running inside cmd/conhost
  • FIXED: Added the flags to the compiler option descriptions.
  • FIXED: The compiler now correctly remembers if it has created debug symbols.


  1. the debugger still didnt work, no cpu window seen

  2. lots of bugs..hello world out put executable file too large almost 1mb, please optimize in size, removing duplicate in library

  3. Well, ehm, yes, the debugger in the IDE clearly isn't compatible with GCC 4.5.2's gdb.exe.

    Oh, and about the size problem: try the "strip executable" option in:

    Tools >> Compiler Opts. >> Settings >> Linker

    ... or ...

    Project >> Project Opts. >> Compiler >> Linker

    It will compress it hello world to about 550KiB's, which is as small as GCC can make it. Even manually making and providing a makefile to gcc results in 550KiB executables.

    About 90% of the 550KiB is used by static libs which are needed by every executable. Have a look at:

    Tools >> Compiler Options >> Linker Command Line

  4. ok..it cant load the prev file when i open it in reload prev file it says found a bug..windows report error.

  5. about the size removing the static library makes hello world 25kb but when you run outside the environment it require a dll to run hello world

  6. @Anonymous1:

    That means the file doens't exist anymore (or you don't have access rights). But the error message is indeed quite vague: I'll see what I can do.


    Well (if you're the same anonymous I was talking to about size): you'd have to blame the GCC guys! I reasoned it'd be the best of both worlds just to add these required static libs by default.

    The only other way I can influence the compiler is by supplying command options to it (like -s, which does a fine job compressing exe's).


    Thank you! ;)

    Well, I have to admit, I haven't got the skill required to completely rebuild that debugger, but apart from that, pretty much everything is working fine now.

  7. how about acquiring the source code of gdb.exe then embed it in dev-ide may you can fix that?

  8. embedding the debugger i think is what borland do of there bc++5.02 ide before.

  9. Hi, i would like to suggest you to add 7-zip header file to the next version.

  10. and move config files in portable version in config so when we want to reset settings we just delete config folder

  11. @Anonymous1 and 2:

    Well, I've had a look at GDB's source, but It's about 60MiB of source code (no icons or whatever, just plain code). That's just too hardcore for me.

    I was testing the old GDB (well, old in amount of years, but GDB doesn't get updates very often), but that wouldn't work either. So, there comes the question again: has this debugger ever worked?


    Uhm, do you mean the LZMA SDK? Or just the plain source code of 7-Zip?


    Yea, the root folder is getting messy this way. It'd be an easy one to fix though, just edit the "-c" flag to '.\config\' in the portable link.

  12. The bug tracker of original Dev-C++: http://sourceforge.net/tracker/?limit=25&func=&group_id=10639&atid=110639&assignee=&status=&category=&artgroup=&keyword=&submitter=&artifact_id=&assignee=&status=1&category=&artgroup=&submitter=&keyword=&artifact_id=&submit=Filter

    A similar Dev-C++ project: http://wxdsgn.sourceforge.net/?q=node/4

    I hope those links might help you. Googling around I found that several people have different problems with debugging using Dev-C++. Did you try old (non beta) versions?

    And what about adding C++11 intellisense, code completion, syntax highlight etc features?