Nowadays Many Sites are providing C Programming Codes or Files for many purposes. But the problem is that how should we use that programming code or how we should Compile that code.
C:\Borland\BCC55
So Today I'm going to explain how to Compile C Programs using Borland C++ Compiler.
How to Install Borland C++ Compiler?
1. First of all Download Borland C++ Compiler From the Link Below.
Borland C++ Compiler
2. After you Download, Extract it.
3. After Extracting Run C++ 5.51.exe. The default installation path will be:
C:\Borland\BCC55
Configuration For Borland C++ Compiler
1. After Installing Borland C++ Compiler, Create two new text documents.
2. Now open the first new text document.txt file and write the following lines into it:
-I”c:\Borland\Bcc55\include”
-L”c:\Borland\Bcc55\lib”
-L”c:\Borland\Bcc55\lib”
3. Now save it as bcc32.cfg.
4. Now open the second new text document (2).txt file and write the following line into it:
-L”c:\Borland\Bcc55\lib”
5. Save it as ilink32.cfg.
6. Now Copy both the files and Paste it in the Borland Directory that is:
C:\Borland\BCC55\Bin
How to Compile C Programming Code( .C Extension File)?
1. Copy your Programming File(example.c file) into C:\Borland\BCC55\Bin.
2. Now Open Command Prompt (Start->Run->type cmd->Enter)
3. Change the Directory to C:\Borland\BCC55\Bin as the present working directory by typind the following command:
cd\
cd Borland\BCC55\Bin
4. Now You can Compile Your Programming code by using the following command:
bcc32 example.c
and hit enter.
5. Now if there is no error in the programming code then you will get a compiled executable module (example.exe) in the same location (C:\Borland\BCC55\Bin).
6. Now You have successfully compiled the programming code into an executable file ( .exe file).
No comments :