Beginning c/c++ compiling.
How can I compile a simple C or C++ program on Linux operating systems using bash Terminal application? Tutorial details Difficulty: easy Root privileges No Requirements GNU C/C++ compiler Estimated completion time 10m GNU C and C++ compiler collection Development tools Development libraries IDE or text editor to write programs Part 1: Install C/C++ compiler and related tools To compile a C or C++ program on any Linux distro such as Ubuntu, Red Hat, Fedora, Debian and other Linux distro you need to install: >Fedora, Redhat, Centos, Or Scientific linux: # yum groupinstall 'Development Tools' >Debian, Ubuntu, or Mint $ sudo apt-get update $ sudo apt-get install build-essential manpages-dev To verify the install, type the following commands to display the version number and location of the compiler on Linux: $ whereis gcc $ which gcc $ gcc --version Sample outputs: $ whereis gcc gcc: /usr/bin/gcc /usr/lib/gcc /usr/bin/X11/gcc $ wherei...