Saturday, April 28, 2012

Dev-C++ 5.2.0.1 released

More of a big polishing update this time. From this version on, download names will be more clear too.

Changes - Version 5.2.0.1 - 28 April 2012

Function tooltips now properly hide when switching tabs again (regression).

One can now select to open nothing and the previously left open files on project reopen.

Folds are now only repainted when the gutter is invalidated, reducing flicker.

Updated the uncomment function: it now supports any newline standard.

Code completion now does not remove too much characters by accident when completing.

The debugger now wants you to add debugging symbols instead of ingoring them alltogether.

Updated the project templates.

The first time configuration window now loads its stuff before showing up.

Updated the chinese (Traditional) translations.

Tidied up a few other dialogs.

Insert, Goto bookmark and Insert bookmark are now disabled when no editor is visible.

The status bar is now cleared when no editors are open.

Important notices

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.

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 back to extract it.

DownloadThe setup which includes MinGW32 can be downloaded here. The setup which includes TDM-GCC x64 can be found here. The Portable zipped version which includes MinGW32 can be downloaded here. The Portable zipped version which includes TDM-GCC x64 can be downloaded here. Lastly, the source code can be found here.

All editions can run on 32-bit Windows.

RC updateThe 5.2.0.2 RC8 update can be found here. Its source code can be found here.

Please do NOT collapse any folds before applying this patch!Changes - Version 5.2.0.2 - *

Added a function to projects which can change the C++/C default choice made when creating the project.

Fixed the comment/uncomment function not properly uncommenting single lines(?)

Watched variable deleting now does not delete wrong variables anymore.

Added TeX formatted code exporting.

Updated the Chinese (TC) translations (by cin.getline).

Compiling progress now properly updates error and warning count.

Warning and error logs are now updated while compiling.

Updated the new project window layout and fonts.

Fixed insert assuming an initial cursor position of (1;1).

Fixed a few code folding bugs regarding collapsing.

The mingw32-make.exe location checker now checks all bin directories instead of just the first one.

The function tooltip now waits 500ms after the last keystroke before parsing the code instead of parsing on each keystroke.

Projects with a lot of files to be opened now open a lot faster.

More bug fixes.

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.

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!

The same thing happened to me. I have Win XP Media Center Ed. 2002 SP3. Dev C++ is 5.2.0.3.

I uninstalled the TDM-GCC version and installed the MinGW32 version. It works out of the box! Something to do with the TDM-GCC version, I guess, (I did try to set up the compiler to default to 32 bits, but with no change in the outcome). So, just try with MinGW32.

I have the same problem, however it does look like the program actually compiles properly.If you open the directory where it compiles to(probably your documents folder) you should be able to find the executable for it. (running win7) This may help with a temporary work around.

It seems that changing where it stores the executable files to the Dev-Cpp folder, you can change this in project options. The ConsolePauser program does not seem to be able to access a file that is not either in its directory or a sub-directory.

Because of that, you're much better off using the SynEdit version that comes with the source zip. Of course, you *could* add the stuff to the fresh SynEdit 2.0.3 source, but that takes a lot more time.

Why are you using a different SynEdit version anyway?

Also, would you mind using English (or Dutch) as much as possible? I can't read Spanish, so I'm relying on Google Translate now, which is far from ideal.

Can you please navigate to Tools >> Editor Options >> Colors and then select 'Folding Lines' in the list. Then try modifying the 'Foreground' color to any color and tell me what happens (it should default to black).

I find it difficult when I create several C source files in a row without using the 'new>project' option, then I hit save/save as and the 'save as type C++ source file' under the filename field is selected by default

I love your work so far, big fan of this ide ,keep it up ,thank you very much

I've added a function called 'Default to C++ when creating new files' to projects which can change the C++/C choice made when creating the project. This option, when disabled for example, will compile new files with gcc.exe (not g++.exe) and chose '.c' as a default extension.

I might add something similar to Environment Options or 'New'.

You can, by the way, also explicitly add '.c' to the file name when saving to force the c extension.

but that's the thing, I'm not talking about project files. if I write many standalone C source files in a row (>>outside of a project<<)I dont want to explicitly add .c whenever I ctrl+S them

is it possible to add something like 'default to C++ on new file' which is different than 'default to C++ on new project' meaning it affects the 'floating' files which dont belong to a specific project?

In Project options->Parameters->Linker I have to specify full path to the library file, I can't write only "libd3d9.a". It's annoying when I use portable version because I must change settings every time when I change computer. Can You set as default library path "\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib" when compiling for x64 and "\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32" when pointer lenght is set to 32bit?

The second big problem in dev-c++ is using relative path in templates. Some templates have line like this: Linker="../../../Program Files (x86)/Dev-Cpp/lib/libd3d9.a" "../../../Program Files (x86)/Dev-Cpp/lib/libd3dx9_43.a"

I think that better idea is something like this:* Linker="/lib/libd3d9.a" "/lib/libd3dx9_43.a"* Or: Linker="/libd3d9.a" "/libd3dx9_43.a"* Or just: Linker="libd3d9.a" "libd3dx9_43.a"When You fix this issue Dev-C++ will be fully portable.

The last thing: Dev-C++ should support git, svn, mercurial. For example, in Tools>>Environment Options>>CVS Support should be option which will switch between git, svn, mercurial and CVS. Then when you choose git "CVS" menu will be renamed to "git", and you will be able to use GIT.

When I right-click on file tab(that tab with name of open source file, don't know how to name this) there are 2 untranslated words(Goto Declaration and Goto Definition), and when I look at english.lng that words are:

12001=Goto declaration12002=Goto definition

but in polish.lng that words are translated.And in english.lng "declaration" and "definition" is written in lower case and in dev it's "Declaration" and "Definition" so I think that words may have different numbers or ID or whatever that number is.

Hmm, that's strange. I explicitly programmed it so that it would produce result #2. I'll have a look at the completion procedure again.

And, yes, you have to redownload the whole thing again when updating. For most versions however, 85% of the download (the compiler) remains unchanged, so constantly redownloading is a bit awkward. So, ehm, I do indeed need some patch system.

"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!"

Why you don't make a small button in 64bit versionto swap between 32 and 64 automatically? You also can make two default profile in 64 bit version (32 and 64 bit version)If you do that, i will download the 64 bit version :)

Can you add an SVN button (with all the functionality to it?? that will be great!! :) )What is a Resources tab? (Can you add a picture to the question? I will vote when I know what you mean :) )

Why you don't make a small button in 64bit versionto swap between 32 and 64 automatically? You also can make two default profile in 64 bit version (32 and 64 bit version)If you do that, i will download the 64 bit version :)

From version 5.2.0.2 (including RCs) I've added a compile profile to TDM-GCC x64 installs which sets the lib path and -m32 for you. You only have to select this new profile in Tools >> Compiler Options >> Compiler Set. Once selected, all files and newly created projects will compile for 32bit. For each existing project, you only have to select it once in Project >> Project Options >> Compiler.

What is a Resources tab? (Can you add a picture to the question? I will vote when I know what you mean :) )

And I don't have any code in that lines and no if's before and after. If I put something in that lines it change to:"In function 'ULL sumDivisors(int)': 23 13 'i' was not declared in this scope At global scope: 25 2 expected unqualified-id before 'for' 25 14 'z' does not name a type 25 30 expected unqualified-id before '++' token 29 1 expected declaration before '}' token "And I have almost everything in "//", so there is no 'i' in my code. If I close and open my code again, one line of code appears(and it weren't there when I was saving).

Most of my problems happened when I collapsed blocks of code. First time I tried to delete collapsed code I've got unexpected error:bug report: http://pastebin.com/zAp6mgBK

And I had to reopen dev. When I reopened dev, all of my collapsed code disappeared ;(

And sometimes dev is "lagging":https://lh5.googleusercontent.com/-ak-3CHpEpBM/T7Tkfqm8PBI/AAAAAAAAAF4/MlemXCnGnxk/s514/lag.bmp

When I hold down key('s' in this case) you can see what happens. If I hold down left or right arrow key then when text cursor enters brackets () it disappears and appears again only after I stop holding key or when it(cursor) leaves brackets.

One old bug (it happens in dev-cpp 4.9.9.2 too):The Class Browser detects some lines with "delete[]X;" in some functions of classes, as if they where new variables, and they are shown in the class browser.http://s7.postimage.org/5v6gkaill/deletevariables.jpgIs there some way to fit it?

Some issues I found while using this package.1. I removed the old Dev-C++ and installed this. After installing packages I noticed that packages were installed in the old directory of Dev-C++. This was because some registry values (related to packman) were not updated to the new location.

2. When creating a devpak that contains DLLs it is no longer possible (or I don't know how) to make a template that would be runnable out of the box. That is because there is a new path for binaries namely c:\program files\dev-cpp\mingw32\bin instead of the old c:\program files\dev-cpp\bin. Are new devpaks expected to put their binaries in mingw32\bin?

I encountered one minor problem, but it has existed before this version, too. If I press the Compile+Execute-Button (F9) he won't execute but only compile. Regardless how often I press the button. But this only happens if there are auto-generated version-information (buildnumber increase). That's why your program has to compiler the .rc file every time I press F9 again. Maybe that's a part of the reason why the button doesn't work functionally.

Secondly, in editor options there is a point "appending closing bracets". Does this have any effects? Since these are ruled under code->symbol completion or do I missunderstand this checkbox?Otherwise you could add a german translation for this point (appears in english at the moment). Should be than "schließende Klammern hinzufügen" ;-)

Hey!..please help me. I have a problem to output my work, .....this is actually what happen:....when I exactly finished my work, to type the correct codes,I try to run it,but it says "Coudn't create process" and below of it the address is c:\Documents and Settings\user\My Documents\Untitled1.exe. and that's all..so please help me Orwell....thanks,...hope you respond soon......

Awards

Translators needed

Dev-C++ is looking for translators, because the author doesn't master all thirty languages Dev-C++ is (partially) translated in.

So, if you're willing to translate Dev-C++ into a language or update the existing translation, don't hesitate to open up YourLanguage.lng and start translating/updating, using English.lng as the reference language.