How to Set Up Embarcadero's Free C++ Compiler for Windows

Go to Embarcadero download page., Select C++ Compiler 5.5 link or click Download Button. , Read and accept the Export agreement. , Sign-in or register for an Embarcadero web account (free). , The download starts automatically., Run the executable...

27 Steps 2 min read Advanced

Step-by-Step Guide

  1. Step 1: Go to Embarcadero download page.

    If not, click on the here link. , Specify a directory in which to store the files that the installer will install.

    Keep a note of this directory. , Once this is done, you will need to make some changes of your system environment to make the compiler work. , Select "system settings". ,,, 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". , Paste the following lines inside of it:-I"C:\Borland\BCC55\Include"
    -L"C:\Borland\BCC55\Lib" Be sure to change the path names if you did not install in the default path (C:\Borland\BCC55). , Navigate to your /bin directory and save the file as a plain text document with the name "bcc32.cfg". ,,, Name it "ilink32.cfg"

    Open a new document/file in your favorite text editor and paste the following code in it: #include <stdio.h> int main(void) { printf("Hello world!\n"); return 0; }</stdio.h>

    Name it "helloworld.c". ,, This will vary with your operating system (replace Username with your computer username):
    Windows XP: cd "C:\Documents and Settings\Username\My Documents" Windows Vista and 7: cd "C:\Users\Username\Documents"

    Press enter. , Press enter.

    The text "Hello world!" should appear in the command prompt.
  2. Step 2: Select C++ Compiler 5.5 link or click Download Button.

  3. Step 3: Read and accept the Export agreement.

  4. Step 4: Sign-in or register for an Embarcadero web account (free).

  5. Step 5: The download starts automatically.

  6. Step 6: Run the executable you’ve just downloaded.

  7. Step 7: Wait for everything to install.

  8. Step 8: Right click on My Computer in the Start Menu and select Properties.

  9. Step 9: Click on "Environment variables" (you will need administrator privileges).

  10. Step 10: In the system variables box

  11. Step 11: find the PATH variable

  12. Step 12: select it

  13. Step 13: then click on the Edit button.

  14. Step 14: Type a semi-colon

  15. Step 15: then add the path to the compiler's BIN directory.

  16. Step 16: Open a text-editing program

  17. Step 17: such as notepad or wordpad.

  18. Step 18: Go to file and click "Save As".

  19. Step 19: Open a new blank document/file in notepad or wordpad again.

  20. Step 20: Paste the following lines inside of it (remember to change the path names if you installed in a different path): -L"C:\Borland\BCC55\Lib"

  21. Step 21: Save this file as as plain-text file in the same directory as the previous file.

  22. Step 22: Test your compiler.

  23. Step 23: Save the new file as a plain-text file in My Documents.

  24. Step 24: Open the command prompt.

  25. Step 25: Change directories to your My Documents folder.

  26. Step 26: Type in the command prompt: bcc32 helloworld.c.

  27. Step 27: Type in the command prompt: helloworld.exe.

Detailed Guide

If not, click on the here link. , Specify a directory in which to store the files that the installer will install.

Keep a note of this directory. , Once this is done, you will need to make some changes of your system environment to make the compiler work. , Select "system settings". ,,, 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". , Paste the following lines inside of it:-I"C:\Borland\BCC55\Include"
-L"C:\Borland\BCC55\Lib" Be sure to change the path names if you did not install in the default path (C:\Borland\BCC55). , Navigate to your /bin directory and save the file as a plain text document with the name "bcc32.cfg". ,,, Name it "ilink32.cfg"

Open a new document/file in your favorite text editor and paste the following code in it: #include <stdio.h> int main(void) { printf("Hello world!\n"); return 0; }</stdio.h>

Name it "helloworld.c". ,, This will vary with your operating system (replace Username with your computer username):
Windows XP: cd "C:\Documents and Settings\Username\My Documents" Windows Vista and 7: cd "C:\Users\Username\Documents"

Press enter. , Press enter.

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

About the Author

D

Diana Russell

A passionate writer with expertise in home improvement topics. Loves sharing practical knowledge.

101 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: