← Back to topics
Topic

Best Compiler

A
Al3kSaNdaR
Is Code::Blocks better compiler for C++ than DevCpp ? I use Code::Blocks. Should I use DevCpp?
b
boris4
Well, Dev-Cpp is on competitions.. I prefer Dev-Cpp
t
tgudlek
Dev-Cpp is an editor, not compiler. I use Dev-Cpp, but I don't like its compiler. Long long & scanf/printf malfunction.
T
Tavo92
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).
r
robi_petranovic
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???
t
tgudlek
@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?
g
gates
and you can use long long in devcpp, for printf and scanf use "%I64lld"
t
tgudlek
Would it still work when I upload it somewhere?
g
gates
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
t
tgudlek
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 ?
n
necuratu
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
m
mfolnovic
well, I use emacs and g++ on linux.... :)
a
adminModerator
@mflonovic: that's the way to do it :) me too...
m
mfolnovic
@admin: I made Makefile so I just run make task_name and it compiles :)


% : %.cpp
g++ -march=prescott -O2 -pipe -fomit-frame-pointer -o $* $<


those are optimizations for my processor ...
t
turgond
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
M
Mishu91
I use Rhide DJGPP, on Linux and it is really nice. Debuging is ok, and the compiler too (I didn't have any problems)
m
mak89k
code blocks is brilliant.... interesting feature which dev does'nt have is code completion... very necessary when ur coding a lot...
S
SeMeKh
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++)
a
adminModerator
still.... emacs
p
pK-lst
Code::Blocks, DevCpp :)
n
nandar.rustam
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..??
A
Al3kSaNdaR
Are you using Linux or Windows OS ?
A
Al3kSaNdaR
Install Code::Blocks IDE, it uses GCC i think.
m
mrarcshade
guys i think the best compiler is the one you used when you first started programming
d
duksi1993
CodeBlocks is usefull for users on Linux...
But in Windows I prefer DevC++
V
Vita94
Windows: Visual C++ Express IDE and their compiler
Linux: Code::Blocks gcc