Support Forums
C++ Compiler - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Programming with C++ (https://www.supportforums.net/forumdisplay.php?fid=20)
+---- Thread: C++ Compiler (/showthread.php?tid=18565)



C++ Compiler - Impuhlsive - 05-06-2011

Anyone know a good compiler that can be accessed from CMD?
Also does anyone know if its ok if I use a word processor (Notepad)
to write a source code for a program? If not please feel free to recommend one!

Thanks
-Impuhlsive


RE: C++ Compiler - Gaijin - 05-06-2011

You can use any type of Editor to write your code.

Here is a list of compilers
http://www2.research.att.com/~bs/compilers.html
Most used
http://gcc.gnu.org/
http://www.mingw.org/

Now back to the editor.... DON DO IT....
If you write you C++ codes in an simple editor, you will have a hard time finding bugs and fixing them.
Code::Blocks or Dev-C++ for example, have an console which will display errors if the compiling process should fail or if your code has few mistakes, errors etc....
I would recommend you Code::Block for writing C++ codes, or even Visual C++...
Code::Blocks and Dev-C++ same as Visual Studio, come with compilers built in, so you will need to press oly one key to compile the code....

Such Applications were created so you can write faster and find errors faster, if you use a simple editor. I bet you'll quit in a day.


RE: C++ Compiler - cfillion - 05-09-2011

MinGW is used by Code::Blocks and it is the Windows port of gcc (Linux and mac).
(Note that Qt SDK install it automatically and use it)

And it is very easy to use in a command prompt (but in most common IDE like Code::Blocks, you don't need to write that) :

Code:
mingw32-make release

Why use another compiler (exepted gcc) after that ? Cool