Monday, December 31, 2012

Dev-C++ 5.3.0.4, 5.3.1 RC3 released

A newer version is available!

As usual, it's time for another pile of fixes for the 5.3 branch.




Changes - Version 5.3.0.4 - 31 December 2012
  • The class browser now always differentiates between private and public members.
  • Fixed the "String not found" messagebox appearing behind the find form.
  • Greatly enhanced the autosave feature. It can now save timestamps and filter by project too.
  • Reduced flicker when closing editors.
  • Added tcc files to the highlighting list.
  • Fixed some rare folding bugs, and improved their performance a bit.
  • When using Goto line or any other function that changes the current line, folds will be uncollapsed to make the destination line visible now.
  • Evaluate and GDB input edit controls now do not cut off the selection when autocompleting.
  • Double clicking on a find result now correctly shows the find result at the top line (instead of one line above that).
  • Errors now have more priority than warnings (which have more priority than other messages) when changing focus to a compilation issue.
  • Swap Header/Source now opens complementary files in a tab right next to the current file.
  • Translations in Goto function will now always fit.
  • Compile Log now shows a final warning count too.
  • Fixed the function tooltip highlighting wrong arguments when putting a space before (.
  • When renaming project files, you'll be asked before any overwriting takes place.
  • Removed WM_CLOSE handling from the default WinMain snippet. DefWindowProc will handle this.
  • The function parameter tooltip now shows class scope info too.
  • More bug fixes and feature additions here and there.



Important notices
  • For ultimate portable programming, please keep using devcppPortable.exe located in the installation folder of the portable version. This launcher will tell Dev-C++ to 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 back to extract it.



Download
  • The setup which includes MinGW32 4.7.0 can be downloaded here (25MB).
  • The setup which includes TDM-GCC x64 4.6.1 can be downloaded here (35MB).
  • The setup which does not include a compiler can be downloaded here (2MB).
  • The portable version which includes MinGW32 4.7.0 can be downloaded here (15MB).
  • The portable version which includes TDM-GCC x64 4.6.1 can be downloaded here (25MB).
  • The portable version which does not include a compiler can be downloaded here (2MB).
  • Separate compilers can be downloaded here.
  • Lastly, the source code can be found here (1MB).

All editions can run on 32-bit Windows.

All Dev-C++ editions can be updated using the No Compiler setups/zips.



Release Candidate 3 of the next version

The 5.3.1 RC3 update can be found here. Its source code can be found here.

Changes - Version 5.3.1 RC3 - 9 Februari 2013
  • Startup time has been reduced by an order of magnitude.
  • The class browser now redraws at least numvisibleitems times faster.
  • "Search Again" (F3) is back from the dead.
  • The toolbars now do not get cut off on restart after about the 800th horizontal pixel.
  • The tip of the day form now does not show up anymore when opening files (again).
  • Gutter auto sizing now takes folding into account.
  • Files that aren't highlighted are now loaded much faster.
  • Added a few hardcoded labels to the lang tables.
  • Reworked the Window List form.
  • Fixed some set management issues in the Compiler Options form.
  • Slightly reduced compilation overhead of the IDE shell around GCC.
  • Reduced memory usage.
  • Exporting editors to HTML now provides a perfect copy of the color scheme.
  • Fixed a memory leak in the Tools window.
  • Updated chinese (TW) translations.
  • Added an example save file name to Editor Options >> Autosave.
  • More bug fixes and feature additions here and there.



Choosing 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).
Compiling for 32bit using TDM-GCC x64
  • To force 32bit on all new projects and non-project compiles, go to Tools >> Compiler Options and select the 'TDM-GCC 32bit' profile. This profile will use the -m32 flag and use lib32 by default.
  • To force 32bit on already created projects, go to Project >> Project Options >> Compiler and select the 'TDM-GCC 32bit' compiler profile.

60 comments:

  1. Thank you ! and a very happy 2013!!

    ReplyDelete
  2. Big update, great :D Happy new Year 2013!!

    ReplyDelete
  3. I have a question, can you tell me how to separately group header files(.h) and source files(.cpp) in a project. I ran though all the options but can't figure out how to group them separately. thanks in advance ...!!!

    ReplyDelete
    Replies
    1. ok, the "add folder" option would do but it's bit misleading. I thought it would actually create a folder inside the project but it acts more like a filter ... !!!!

      Delete
  4. Hi Orwell,

    I have a quick question. How do you know what is wrong with your code? In the old Bloodshed Dev C++, it used to give me a red line at the place of the error and at the bottom, the reason of the error popped up, so you knew how to fix it (For example: Line 11:1 | Missing ';' after statement). The Orwell Dev C++ just shoots me a red line. Any way to fix this (Ex: Options)?

    Keep up the good work!
    - Usandfriends

    ReplyDelete
    Replies
    1. Nevermind, I fixed it.

      Delete
  5. how to use opengl in 5.3 onwards versions?
    please leave a tutorial here..
    thanx in addvance

    ReplyDelete
  6. std::this_thread::sleep_for() fails to compile. IF you are building MinGW32 yourself, there's a build switch --enable-libstdccxx-time that should fix this and allow this C++11 feature to compile, as I understand it. See this post on StackOverflow: http://stackoverflow.com/a/12961816

    ReplyDelete
  7. good job, thank you for your work.
    a couple bugs i noticed:

    1) compiler errors identify line # in col # field, so can't auto scroll to the error

    2) some 'Execute' menu items seem mislabeled:
    f12 (rebuild all) - also randomly(?) executes
    f11 (compile & run) - does not run

    3) it would be nice to be able to automatically overwrite characters created by 'symbol completion' by overtyping them exactly or with return key or something else.. maybe already implemented i don't know about

    1 & 2 made me revert to an old bloodshed version

    - costanza

    ReplyDelete
    Replies
    1. Hello,

      1) Can you provide a screenshow showing that? This is probably caused by using old GCC compilers, before they moved to line:col:msg from line:msg.

      2) Wait, what? This might sound stupid, but are you sure you're not clicking on the wrong F key (because I reordered the default shortcuts)? Otherwise, well, I don't know.

      I'd like to see some examples (screenshots, videos) if you don't mind.

      3) This is already done automatically when you * type * both the opening and ending characters after each other.

      Delete
    2. ahaa :

      1) i installed the setup without a compiler, so it ran with my old gcc 3.0; so 'setup with mingw32 4.7.0' fixed it

      2) oops, keyboard shortcuts from old installation interfered with this one

      3) thanks. also it would be handy to fast overtype a symbol pair's closing at any time, such as : function( value1, value2 _)_; instead of using arrow keys to skip it

      thank you for keeping the project alive

      Delete
  8. Dear Johan,

    Another bug:

    When you launch the Dev_Cpp with clicking onto a '.cpp' file, the 'Tip of the day' window is still non-active (and, hence, non-exitable with pressing the 'Esc' key).

    Bests,
    mx

    ReplyDelete
  9. Dear Johan,

    Another bug:

    When you have several open tabs (=code files) and close one of them, the image of the closed tab remains visible on the screen (until you make the system refresh the corresponding area of the screen in that or another way).

    Best,
    mx

    ReplyDelete
    Replies
    1. I can't reproduce this one. Can you provide a bit more information, like:

      - How you close the tabs (middle mouse, keyboard, ...).
      - Which tab you close (not visibible, currently visible).
      - Which OS you're using.
      - ???

      Delete
    2. I see this irrespectively of the way I close the tabs (middle mouse; keyboard[Ctrl+W]; right mouse+'Close' item in the context menu).

      I close the currently visible tab (am unaware of a way to close an inactive tab...).

      My OS is WinXP Media Center Edition SP3 running on a Toshiba Satellite P100 laptop.

      mx

      Delete
    3. I'm about 99% percent sure what change has caused it, and some different behaviour of XP vs. 7 could be causing this.

      Can you confirm you're the same 'mx' as one who emailed me a few times? If so, I could send a few testing versions to see if they fix the problem.

      Delete
    4. Dear Johan,

      I do confirm this.

      mx

      Delete
  10. Dear Johan,

    Another bug:

    When you close a file with errors and/or warnings in it, the Compiler log of warnings and errors remain open and still shows the list of the errors and warnings.

    Furthermore, this log remains open even after you open another file.

    In general, it would be great if you could make this log show warnings that are relevant to the currently active file/tab.

    Best,
    mx

    ReplyDelete
  11. Hi,
    I don't know if my problem is specific to this version, but if I 'Execute' my Program it works as intended and when I 'Debug' it, it seems to use a different working directory than the one my .exe resides in.
    Can someone point me to an option changing this behaviour? Searched the web and the Project Options but didn't find anything..

    ReplyDelete
    Replies
    1. Hello,

      This is a confirmed bug/problem which is planned to be fixed in 5.3.0.5.

      There are a few quick fixes to this problem in the mean time:
      - Manually re-set the working directory:

      char fullexepath[MAX_PATH];
      GetModuleFileName(NULL,fullexepath,MAX_PATH);
      ExtractFilePath(fullexepath,exepath); // copy until last backslash
      SetCurrentDirectory(exepath);

      - Tell GDB you want a different working directory:
      http://www.ofb.net/gnu/gdb/gdb_20.html

      - Try Googling "GDB set working dir".

      Delete
    2. Thanks a lot for this quick answer :)

      Delete
  12. hi brother owsum work!!
    but can u tell me how to use winbgim on it...
    cause i try to install devpak but now it is not working :/

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. "Build time: January 1 2012 - 11:52" is what shows up in "About Dev-C++ :)" dialog, fix it to reflect 2013 :)

    ReplyDelete
    Replies
    1. Oops.

      It seems that's the classic automatically-write-2012-after-every-date bug everyone seems to encounter. :P

      I honestly didn't notice it until now, but it will get fixed in 5.3.0.5, which should be released in beta form sometime this week.

      Delete
  15. Couldn't Create Process.. im using windows 8 pro

    ReplyDelete
  16. Hello,

    I was using printf to display the result but when i run it, there was an error saying that printf was not declared.. what should i do, please help!

    ReplyDelete
    Replies
    1. Add at the top:

      #include

      You may have forget it ;)

      Delete
    2. only #include?
      so there will be:

      #include
      #include
      #include

      sorry i didn't get what you mean

      Delete
    3. *ooopss,
      #include cstdlib
      #include iostream
      #include

      Delete
    4. Oh sry, didn't see that there is just #include :(

      What I mean: (in C++)

      #include cstdio

      in C:

      #include stdio.h

      Delete
  17. Hi all.

    I've installed Dev C++ 5.3.0.4 on windows 7 64 bis (Dev-Cpp 5.3.0.4 TDM-GCC x64 4.6.1 Setup.exe). When I open a .c file, the IDE freezes. When I open this same .c file with Dev C++ 5.3.0.2, the IDE opens it normally.

    Could you give me a hand on this?

    Regards,

    FCCC

    ReplyDelete
  18. As it seems, the TDM-GCC x64 variant is not able to generate x86, 32bit DLLs...

    If set to "TDM-GCC 4.6.1 >>> 32-bit <<<", it generates (working) >>> 64 bit <<<
    code and throws tons of messages like this:

    skipping incompatible C:....libmingw32.a when searching for -lmingw32
    skipping incompatible C:....libmoldname.a when searching for -lmoldname
    ...


    If the 32 bit option -mx is given, it comes up with stuff like this:

    [Warning] cannot find entry symbol DllMainCRTStartup; defaulting to 000000006fbc1000
    i386:x86-64 architecture of input file `siseli.exp' is incompatible with i386 output
    ...
    a few hundred undefined references:
    [Linker error] whatever.exp:fake:(.edata+0x34): undefined reference to `check'
    ...

    ReplyDelete
    Replies
    1. Hi,

      I have the same problem, when I try to create a 32-bit-dll with the 64-bit compiler. What can I do?

      Delete
    2. Same problem here, found any solution yet?

      Delete
    3. I Have the same problem!!!!!!
      Solution???? Pls!

      Delete
  19. Intellisense still not working. I'm using Win7

    ReplyDelete
    Replies
    1. winbgim work´s in Orwell Dev cpp?

      Delete
  20. Could there be an option on how the class browser items(global vars and functions, class members) are ordered on the vertical list?(like selecting ordering by name,order of appearance(line number and open file tab position),ordering differently for class members than global functions)

    ReplyDelete
  21. I swear. The portable versions have something wrong with them. I tried to extract it with 2 online extractors, and I couldn't get the result from either of them.

    ReplyDelete
    Replies
    1. Well, they're just archives that use the 7zip/LZMA2 format. Any reasonably up to date archiving program can deal with them (see "Important notices"). You don't need online extractors for that. ;)

      Delete
  22. When I opened this program for the second time, it generated a ton of copies of itself. I had to manually unplug my computer to get the fork bomb to stop.

    ReplyDelete
  23. ------------code for testing--------------------------
    #include

    int a[10], sum = 0;

    int main(void) {

    for (int i = 0; i <= 9; sum += a[i ++]) {
    scanf("%d", &a[i]);
    }

    printf("%d\n", sum);
    return 0;
    }
    ------------------------------------------------------
    [5.3.0.5 RC5] Debuging array's bug still remains. This time, I watch array 'a', and break at line 7. When debugging is start, debug window on the left add a column said 'a = Execute to evaluate' in red, then a 'Runtime error' window showed.
    ---------------------Bug Track Information------------
    Application version: 5.3.0.5

    Machine info
    ------------
    Platform : Windows NT
    OS version : version 6.1 (build 7600)
    Additional info:
    Computer name : SXKDZ-SEVER


    The following error occured in version 5.3.0.5:
    Access violation at address 0024DB25 in module 'devcpp.exe'. Read of address 00000008 (at address 0x0024DB25)


    Please include a description of what you were doing before the error occured:


    Stack trace:
    ------------
    0027AC4D (00179C4D): TEAnalyzer.EHandler (ExceptionsAnalyzerFrm - 228)
    0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
    0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
    0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
    001AFA30 (000AEA30): TSynEditMark.GetIsBookmark (SynEditMiscClasses - 1584)
    0024EEAC (0014DEAC): TDebugger.DeleteWatchVars (debugger - 454)
    0024EEC2 (0014DEC2): TDebugger.DeleteWatchVars (debugger - 454)
    002448F7 (001438F7): TMainForm.PrepareDebugger (main - 3036)
    00244C62 (00143C62): TMainForm.actDebugExecute (main - 3123)
    00244F3A (00143F3A): TMainForm.actDebugExecute (main - 3157)
    0027DB45 (0017CB45): (devcpp - 166)
    0027DB60 (0017CB60): (devcpp - 166)
    0027D7A8 (0017C7A8): (devcpp - 105)
    0027D7A8 (0017C7A8): (devcpp - 105)
    ------------------------------------------------------

    By clicking 'Continue', debugging window increased a line '0,0,0,0,0,0,0,0,0' then the runtime error remained. Clicking 'Continue' again and again, the column will increase. But this time the increased line provided the right information that the array 'a' had.
    In my opinion, if the user wants to watch the same array, the column won't increase to show the latest watch information. The debugger should update the array's information in the same column. If not, when the user click 'Next Line' for 200 times, the debug window will be hard to see and understand.

    ReplyDelete
    Replies
    1. Please read the replies on the Sourceforge bug tracker (a patch is provided):
      https://sourceforge.net/p/orwelldevcpp/tickets/42/

      Delete
  24. Hey man, really good work, this was a dead project for quite a long time prior to 2012, can you make an editor for PHP like this ?

    ReplyDelete
  25. Only one problem for me:
    I have been pressing F9 to compile and run for the past 6 years, and I still can't manage to change my habit after 3 months. Would it be possible to revert the shortcut back to F9 instead of F11 like versions before 5.3.0.0?

    ReplyDelete
    Replies
    1. Yes, of course. You can change all shortcuts using Tools >> Configure Shortcuts.

      Delete
  26. I updated Japanese language file for 5.3.0.4
    It can be downloaded here.
    http://www.gigauploader.com/file/0188195904333848

    ReplyDelete
    Replies
    1. I can safely assume you're the same MikeCAT as before right? ;)

      If so, thanks again. But please keep in mind the 5.3.1 betas/RCs contain quite a bit of next text. You might want to add these too, while you're at it.

      Delete
    2. Yes, I am same as who previously uploaded the translation.
      I will translate it again, if needed.

      Delete
  27. Can SOmeone tell me Why this version, i cant write in C++... When i click on Compilate it show me a error with

    HELP ME OUT!

    ReplyDelete
  28. The existing Chinese translation seems kind of outdated, so I updated it.
    http://www.mediafire.com/?jdwu3hkpspcu5j2

    Thanks for bringing us a new Dev-C++. Keep up the great work!

    ReplyDelete
    Replies
    1. Hi,

      The RC versions of the new version include an updated chinese (simplified and traditional) translation. I assume you haven't seen these, so please review these. I've heard that they are quite good.

      I can't read it however (I can only read Dutch/German/English), so if you have a complaint about the work done, all I can do is give you contact info of the other translator.

      Thanks for the effort you put in already though.

      Delete
    2. Well, it doesn't matter. It's good to know another newer version translation is included. Thanks! :-)

      Delete
  29. Hi Orwell,
    I am very glad with your work on DevCpp.
    I downed your latest version DevCpp531.
    Installed on Windows 8 and made a simplified Hello World as a console-program. Worked OK.
    Then I auto-installed Allegro-4401.
    Does NOT work. Installment seems OK, but compiling with the first line #include
    gives an error no such file or ditectory.
    Checking the include- and lib-folders gives the impression it is all there.
    It is probably a matter of settings in the project-environment.
    I am stuck now completely.
    Can you help me with this matter.

    ReplyDelete
  30. A couple of hints based on experiences:

    - Updating via tools: change the order of the two site-entries. Planetmirror can't be reached anymore.
    - The list of updates is not complete after the first check. Clicking update gives then a lot more.
    In my case you see then Allegro4109, wich I used.
    The latest version is however Allegro442. This is shown on Devpaks.org, but not in the updater.
    - There is a huge difference between Allegro-4 and Allegro-5. The updater suggets to update from Allegro-4 to an Allegro-5 version. These two are not compatible nor portable.
    - Please try to realize that your "followers"
    are not operating on your level of computing.

    ReplyDelete
  31. To all those having problems compiling 32bit executables with tdm-gcc64:

    1.) Set compiler profile in project properties to 32 bit
    2.) Add -m32 both to compiler AND linker params

    else compiled binary and linked libs don't share the same format.

    Be aware when importing existing projects from older ide's that some settings don't match. Check project properties before compiling/saving.

    Attention when switching over to an older version of wxDevCpp already installed, it will alter the path and environment variables, giving you less options and faulty compiler profiles.
    Double check if your console app is still console, else you don't see anything.

    Thanks Orwell for reviving my favorite ide

    ReplyDelete
  32. How to include graphics.h header file in the program

    ReplyDelete