User Tools

Site Tools


Compiling and executing

Just like in the C language, C++ programs must be compiled in order to run. The concept of the compiler is same as in the C compilers. The GNU compiler, gcc, can be also used to compile C++ programs. However, there is a binary called g++ which actually calls gcc with C++ set as default language and automatically specifies linking to the C++ libraries. On some Operating Systems, you can find it also as c++. The command line parameters are same as in the C gcc compiler. After you will compile your C++ code, you can easily execute it:

handbook/handbook/programing_2.txt · Last modified: 2010/04/15 21:18 (external edit)