Saturday, 2 November 2013

Using Borland to Compile C Programs


A C-compiler converts the source code given by the User to Machine language. Borland c++ compiler is one of the best compiler.Download it from here.After Installing the setup file follow the below Steps to configure the compiler.

To configure compiler:-

-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"

Copy the above two lines exactly and paste them in a Notepad and save it.Then change the Extension from .txt to .cfg and name it as bcc32.cfg

-L"c:\Borland\Bcc55\lib"

Copy the above single line exactly and paste it in a Notepad and save it.Then change the Extension from .txt to .cfg and name it as ilink32.cfg

Now move both bcc32.cfg and ilink32.cfg to c:\Borland\BCC55\bin   directory.

To compile a Program using Borland:-

1.Copy the source code file with .c extension to c:\Borland\bcc55\bin 

2.Open command prompt from stat menu or Run cmd command.

3.Use cd command to change directory to c:\Borland\bcc55\bin
    eg:-  cd c:\Borland\bcc55\bin

4.Then type bcc32  <Name of source file> and press Enter.

5.The .exe file will be created in the same folder in which source code is present.

Advice:-
Instead of changing directory (cd) to the directory c:\Borland\bcc55\bin for every time you want to compile a source code.You can make the c:\Borland\bcc55\bin as an Environment variable.For more details visit here.

Download Compiler



varun sandila

Written by varun sandila. Blogging is my hobby.Iam interested in web security,application designing,visual basic.

0 comments:

Post a Comment

 

Copyright @ 2013 TechTutor.

Designed by Templateify & Sponsored By Twigplay