Is Code::Blocks better compiler for C++ than DevCpp ? I use Code::Blocks. Should I use DevCpp?
Best Compiler
Well, Dev-Cpp is on competitions.. I prefer Dev-Cpp
Dev-Cpp is an editor, not compiler. I use Dev-Cpp, but I don't like its compiler. Long long & scanf/printf malfunction.
If you are talking about IDEs i use Geany. And if you are talking about compilers, I use GCC 4.2 (4.3 doesn't support >?= which is a bit sad so I don't use it).
Code::Blocks is a lot better than dev-cpp IMHO.
In fact, dev-cpp was the worst IDE I've ever opened... I can't belive that we all must use that on competitions... I mostly hate it's compiler... Long long's are not working, printf and scanf are doing some crazy things... Last year on school competition I just did scanf ("%d:%d:%d", &x, &y, &z), and i got INT_MIN or sometnig simmilar in every variable...
Then no automatic system ("pause") or whatever.. Debugging sucks (if you compare it with Code::Blocks).... You need to click about 20 times just to change compiler options (for example add -Wall, which is not by defaultl) or change command to execute... etc....Should I continue???
In fact, dev-cpp was the worst IDE I've ever opened... I can't belive that we all must use that on competitions... I mostly hate it's compiler... Long long's are not working, printf and scanf are doing some crazy things... Last year on school competition I just did scanf ("%d:%d:%d", &x, &y, &z), and i got INT_MIN or sometnig simmilar in every variable...
Then no automatic system ("pause") or whatever.. Debugging sucks (if you compare it with Code::Blocks).... You need to click about 20 times just to change compiler options (for example add -Wall, which is not by defaultl) or change command to execute... etc....Should I continue???
@robi_petranovic: Dev-Cpp isn't the only program you can use. ;) You can use GCC in Dev-Cpp, but it requiers some setuping. Why should system( "PAUSE" ) be automatic?
and you can use long long in devcpp, for printf and scanf use "%I64lld"
Would it still work when I upload it somewhere?
on SPOJ it works with both '%lld' and '%I64lld', and if you are unsure you still can submit "%lld" because your source code compiles on judge, not on your computer
I know where code is compiled, that's why I'm asking :D. So, before sending, I must replace "%I64lld" with "%lld" to be sure ?
yes
Well, i know that "%lld" is a problem in mingw, not in Dev-Cpp, CodeBlocks is using the same compiler as Dev-Cpp. Try printing with cout, it always works. And about linux programming, CodeBlocks is probably the best IDE i've ever used on linux. Other Dev-Cpp problems: indent is working worst than in CodeBlocks, the debugger is worst, the projects are worst. The only thing better is that you can debug without creating a project. On windows vista the gcc from Dev-Cpp is not working.
Well, this are the avantages and disavantages of CodeBlocks and Dev-Cpp. Sorry for my bad English.
Toni
Well, this are the avantages and disavantages of CodeBlocks and Dev-Cpp. Sorry for my bad English.
Toni
well, I use emacs and g++ on linux.... :)
@mflonovic: that's the way to do it :) me too...
@admin: I made Makefile so I just run make task_name and it compiles :)
those are optimizations for my processor ...
% : %.cpp
g++ -march=prescott -O2 -pipe -fomit-frame-pointer -o $* $<
those are optimizations for my processor ...
Omg you are on linux :D I like linux but never managed to find internet drivers for my PC for it, so never got into it :D
I use Rhide DJGPP, on Linux and it is really nice. Debuging is ok, and the compiler too (I didn't have any problems)
code blocks is brilliant.... interesting feature which dev does'nt have is code completion... very necessary when ur coding a lot...
Code::Blocks is a lot better than Dev-Cpp (for sure)
The worst thing with dev is the indentation, you cant even select some lines and choose to indent all of those lines (you can do this in most of editors with a simple click on Tab button)
I don't claim Code::Block as the best Editor (or even IDE), but it's far better than dev. (TBH, I prefer Code::Blocks as the best IDE for C++)
The worst thing with dev is the indentation, you cant even select some lines and choose to indent all of those lines (you can do this in most of editors with a simple click on Tab button)
I don't claim Code::Block as the best Editor (or even IDE), but it's far better than dev. (TBH, I prefer Code::Blocks as the best IDE for C++)
still.... emacs
vim
vim,emacs...
Code::Blocks, DevCpp :)
CodeBlocks
hei..how to install th gcc 4.2..
i already download it.. but i didn't find the exe file..and there isn't also any installer..
how..??
i already download it.. but i didn't find the exe file..and there isn't also any installer..
how..??
Are you using Linux or Windows OS ?
windows..
Install Code::Blocks IDE, it uses GCC i think.
guys i think the best compiler is the one you used when you first started programming
CodeBlocks is usefull for users on Linux...
But in Windows I prefer DevC++
But in Windows I prefer DevC++
Windows: Visual C++ Express IDE and their compiler
Linux: Code::Blocks gcc
Linux: Code::Blocks gcc