Sunday 26 August 2012

C/C++ Configuration

How to Configure C/C++ configuration on Debian 6;
  •  Download the respective GNU Linux c/c++ compiler archives namely,  gcc-core-3.4.5 and gcc-g++-3.4.5
  • Go to your shell or terminal and you'll need to a super user or root to install this.
  • On the terminal change directory to where the repositories or archives are located.
  • Type on the terminal cd <directory of archives> i.e., cd /home/rawg/Desktop 
  • Install using the following commands  apt-get install gcc-core and apt-get install gcc-g++ to install both C and C++ compilers.
To test if am right type c++ --version on the terminal  you should see your version of the compiler if it is successful.

On windows;
  1. First you need to be connected to the Internet 
  2. Download GNU's compilers either cygwin or mingw.
  3. Install one compiler
  4. Go to the installation directory of the compiler e.g., C:\MinGw\bin
  5. You'll need to copy the bin directory to your Path as I have done for Java compiler.
  6. Follow the same steps as the  Java configuration

No comments:

Post a Comment