Wednesday, January 26, 2011

Installing Borland C++ compiler


In previous years i've always stuck on to visual c++ from microsoft and when in linux i use anjuta. I like GUI for getting things done, WHY???? because i'm lazy. Well in my search to get free compilers from the net i stumbled across borlands commandline c compiler, at first installation and other related stuff was hard, but googling saved me... and here's my tutorial on it. The application is called freecommandlinetools.exe Borland has now changed... if you want their free compiler you have to register and lot of other stuff along the way.. Now on to business...


2. Install it... No big kid stuff, just point and click; pretty much your standard windows install.

3. If you have not changed the default windows directory and set everything to default.. follow my lead.

Right click on My Computer in the Start Menu and select Properties

Select "Advanced system settings"

Click on "Environment variables" (you will need administrator privileges)

In the system variables box, find the PATH variable, select it, then click on the Edit button
Type a semi-colon, then add the path to the compiler's BIN directory. If you did not change
the default install directory, then you will just need to copy and paste this on the end of the path environment variable (without quotes): ";C:\Borland\BCC55\Bin".

Open a text-editing program, such as notepad or wordpad. Paste the following lines inside of it:
Be sure to change the pathnamess if you did not install in the default path (C:\Borlan\BCC55).Go to file and click "Save As". Navigate to your /bin directory and save the file as a plain text document with the name "bcc32.cfg". Open a new blank document/file in notepad or wordpad again. Paste the following lines inside of it (remember to change the pathnames if you installed in a different path):
Save this file as as plain-text file in the same directory as the previous file. Name it "ilink32.cfg"

All that's left to do is to test your compiler. Open a new document/file in your favorite text editor and paste the following code in it:

int main(void)

printf("Hello world!\n");
return 0;

Save the new file as a plain-text file in My Documents. Name it "helloworld.c".Open the command prompt.Change directories to your My Documents folder. Type in the command prompt: bcc32 helloworld.c. Press enter. Type in the command prompt: helloworld.exe. Press enter.

The text "Hello world!" should appear in the command prompt.

Screen shot section

that's the screenshot showing the path folder.

Thanks and credits:

A big round of applause to John Smiley and most importantly wikiHow

and my dear brother and mentor RMJ for pushing me into programming.


t1nm@n (Ashish Kurian Thomas)