Sunday, May 18, 2008

C++ Free Compilers

Leave a Comment

How do I get a C++ compiler?

Best way to learn C++ is to get hands on with the code. For this basic requirement is to have a compiler installed. There are many free compilers out there on the web.

Borland C++ compiler

  1. Free download in the following link. http://www.codegear.com/downloads/free/cppbuilder
  2. There are few tricky installation instructions. Update the system PATH to include "C:\Borland\BCC55\Bin".
  3. Create a file BCC32.CFG in "C:\Borland\BCC55\Bin" with the following 2 lines.
    -I"C:\BORLAND\BCC55\INCLUDE"
    -L"C:\BORLAND\BCC55\LIB"
  4. Create a file LINK32.CFG in "C:\Borland\BCC55\Bin" with the following line.
    -L"C:\BORLAND\BCC55\LIB"
  5. Test by writing a small hello world program.
    Use "bcc32 .cpp" to compile. This creates .exe in the same directory.

MINGW Compiler
MinGW - Minimalist GNU for Windows . A native Win32 port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications.

  1. Download "Automated MinGW Installer" EXE from this link. This will help in automatic download install of MINGW.
  2. During the installation process include "g++" option in addition to the default enabled options.
  3. Update the system PATH to include "C:\MINGW\bin".
  4. Test by writing a small hello world program. Use "g++" to compile. This creates a.exe in the same directory.
If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment