Editor/Compiler question

This is a discussion on Editor/Compiler question within the C++ Programming forums, part of the General Programming Boards category; Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for ...

Editor/Compiler question

Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for me, then switched to code::blocks for no apparent reason other than capriciousness.

Both these compilers allowed the creation of code that held errors as can be seen in this thread. Now, is that just me, the compiler or something else? Do you lovely people have any recommendations on compilers?

It is not the job of compiler to check for errors; that's the programmer's job. The compiler just checks for syntax errors which is a small subset of the errors which can exist in source code.

Anyways, neither Dev-C++ nor code::blocks are compilers. They are just IDEs which is a pretty front-end for a compiler. It's entirely possible that both Dev-C++ and code::blocks use the exact same compiler internally.

Opinions please as I am a bit confused right now. I started out using the Dev-C++ which was fine for me, then switched to code::blocks for no apparent reason other than capriciousness.

Both these compilers allowed the creation of code that held errors as can be seen in this thread. Now, is that just me, the compiler or something else? Do you lovely people have any recommendations on compilers?

Cheers

The problem is that you cannot create valid C++ code. This is not the IDE's fault.
Go ahead and switch if you want, but you will still get errors akin to what you got in that thread.

Well, obviously the problem is me Not unexpected, but as I was not getting errors and the code was giving the correct results I thought that the code was correct.

I just thought it was strange that I was not getting the errors that others were for the same bit of code. Normally the compiler pulls me up on what seems like everything. Obviously I have a way to go and a lot to learn.