You will need to find and correct the error, then compile again. If there are any errors reported in this window, the program will not be compiled to machine code. If you have typed everything in correctly, you should see the following window (or a similar window for prog1.c).
#Borland c++ compiler code
ġ2 Compile the project To compile your source code (convert it to machine code) click on Project, and then Compile. To save the file, Click on File then Save. This means that the file has yet to be saved. ġ0 Save the project In the title bar of the code window, there is a * after the source code file name. The code window is where you to enter the text of your program. You will see a code window for C:\temp\cpp\prog1.cpp (or prog1.c). Now click on the filename prog1.cpp ( or prog1.c) to highlight it, and press the Enter key to open the file. prog1.exe is the name of the executable file to be generated from prog1.cpp (or prog1.c). This is the source code file, the one that contains the text of the C++ or C program. Within this project is a C++ (or C) file : prog1.cpp (or prog1.c). The project file is prog1.ide in the c:\temp\myprogs directory. You will then see the Project window… Ĩ The project is called prog1. Then click on the OK button of the New Target window to complete the setup for the new project. rc boxes to deselect them so that the Advanced Options window looks like this: Now click on the OK button of the Advanced Options window. The remaining settings are as shown in the New Target window above and are not changed Now click on the Advanced button ħ Now click on the OK button of the Advanced Options window.Ĭlick in the. In the Target Model: text box select Console. In the Target Type: text box click on Application to highlight it. In the Project Path and Name: text box, type: c:\temp\myprogs\prog1.ide Notice that the Target Name is automatically taken from what you type. ĥ Create a new project From the Borland C++ main screen, click on File then New then Project to get to the New Target window: Don’t worry if the screen is not exactly like yours – but it should have the Borland C++ icon and title in the top left corner.
![borland c++ compiler borland c++ compiler](https://slidetodoc.com/presentation_image_h/e27879f534cad95c446135afddb403d4/image-2.jpg)
You should then see the following screen. Ĥ You should then see the following screen From the programs list, click on Borland C then Borland C++.
#Borland c++ compiler how to
How to Use The Borland C++ Compiler Version 5.02 to create C++ and C programs ĭouble click on the Borland C++ icon on the desktop: If the icon is not on the desktop, click on the Start button and select Programs from the list of options. 1 How to Use The Borland C++ Compiler Version 5