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
- Free download in the following link. http://www.codegear.com/downloads/free/cppbuilder
- There are few tricky installation instructions. Update the system PATH to include "C:\Borland\BCC55\Bin".
- 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" - Create a file LINK32.CFG in "C:\Borland\BCC55\Bin" with the following line.
-L"C:\BORLAND\BCC55\LIB" - 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.
- Free download in the following link. http://http://sourceforge.net/project/showfiles.php?group_id=2435
- Download "Automated MinGW Installer" EXE from this link. This will help in automatic download install of MINGW.
- During the installation process include "g++" option in addition to the default enabled options.
- Update the system PATH to include "C:\MINGW\bin".
- Test by writing a small hello world program. Use "g++" to compile. This creates a.exe in the same directory.






0 comments:
Post a Comment