I wrote C++ code in notepad and want to compile with GCC compiler. Is GCC compiler a program? from which site I can download it? I don't have any information about it. What can I do?
4 Answers
You can start by downloading Code::Blocks, its an cross-platform IDE that can be downloaded including MinGW GCC compiler.
But if You're using Linux you can use just a "gcc" command in the terminal.
GCC is a program. if you have linux its probably installed. to chek just type in the console line gcc. if you get a out put with the syntax - it's installed else - type the command that's suggested. in order to compile something type:
gcc <file name>
it will create a .out file that you could run from the console line. for more info type:
man gcc
1 Comment
If you're on Windows you can try one of ports: mingw.
If you're on Linux, you probably have it installed (try gcc --version) or at least available from repository (check your distributions "installer").
There is also a number of (free) IDEs that you can also get and use them instead of notepad. Google for Eclipse/CDT, Netbeans, code::blocks, etc.