Tuesday, July 26, 2011

Dev-C++ 4.9.9.7 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 4.9.9.7 - 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-4.9.9.3 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 4.9.9.3+ 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.


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


Problems
  • FIXED: The uninstaller's version string is lagging (it reports 4.9.9.5).
  • FIXED: 'unknown escape character' lacks formatting.
  • FIXED: Portable configuration files are now saved in root\config instead of root. Dev 4.9.9.7 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.





13 comments:

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

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

    ReplyDelete
  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

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

    ReplyDelete
  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

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

    @Anonymous2:

    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).

    @Anonymous3:

    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.

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

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

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

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

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

    @Anonymous3:

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

    @Anonymous4:

    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.

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

    ReplyDelete