Thursday, February 16, 2012

Dev-C++ released

Here's a new one which supports code folding and doesn't leak nearly as much memory as older versions did.

Changes - Version - 16 Februari 2012
  • Added code folding.
  • A few directory checks now use absolute paths instead of relative ones.
  • Added a few 32bit/64bit items to the FAQ.
  • Fixed the Help Menu Item not always working.
  • Added a few translations (translated by cin.getline).
  • Merged all 'New...' toolbar buttons to one 'master' button.
  • The class browser toolbar now sizes its dropdown menu to make its content fit.
  • Dev-C++ now uses Segoe UI 9pt as a default when it's installed.
  • Updated the statusbar and the toolbars.
  • Fixed a class browsing crash when not using a project.
  • And more minor things.
  • Fixed a crash when saving logs when no project is opened.
  • Fixed a lot of memory leaks.
  • Inserting classes and variables is faster now.
  • Code folding now automatically updates when creating new files from templates.
  • Fixed some more memory leaks. Folding doesn't leak anymore now.

Important notices
  • 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.
  • 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.
  • 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.
  • For ultimate portable programming, please launch devcppPortable.exe 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.
  • If you're getting 'Unsupported compression method' errors when extracting the portable version, please update your archiving program. The archive uses LMZA2 compression, which was added to WinRAR 3.91 and 7zip 9.04 somwhere in 2009. The latter is just as free as Dev-C++, so nothing is holding you pack to extract it.

The setup can be downloaded here: 32bit or here: 64bit. The Portable zip version can be downloaded here: 32bit or here: 64bit. The source code can be found here.

Final Release Candidate
The final version of, which is currently being tested can be found here. Its source code can be found here.

Guide to choose between 32bit and 64bit
  • The 64bit compiler will also run op 32bit computers. Not problem at all.
  • The 64bit compiler can do everything the 32bit compiler can, including creating standard 32bit executables.
  • The 64bit compiler can do stuff the 32bit compiler can't, like creating 64bit executables. It also comes with a lot more headers and libraries.
  • There is no single reason to download the 32bit version except for maybe file size, marginally longer compiling time, or in case you have to use that specific compiler for any reason (regression problems for example).
Guide to compile for 32bit using TDM-GCC x64
  • To force 32bit on all new projects and non-project compiles, go to Tools >> Compiler Options >> Settings >> Code Generation and set "Pointer Width" to 32bit.
  • To force 32bit on already created projects, go to Project >> Project Options >> Compiler >> Code Generation and set "Pointer Width" to 32bit.
  • Now open Tools >> Compiler Options >> Directories >> Libraries. Change the path ending with 'lib' to point to a folder called 'lib32' next to it.
  • Done!
  • Alternatively, one can create a 32bit and 64bit config based on one installation of TDM-GCC x64. Go to Tools >> Compiler Options and create a new set called TDM-GCC 4.6.1 32-bit for example. Copy all settings in the General tab from the x64 set. Then, for that compiler, set the settings described above to your 32-bit configuration. This way, you don't have to install two compilers!