Search
|
Borland Command Line Compiler v5.5 This is a free version of the Borland C++ compiler. Here I will tell you what you can expect from it, how to set it up and how to enhance it. Index: Features: Here's what you can expect from this compiler:
Please don't expect:
This compiler is a good download for those who want to use a widely compatible C/C++ compiler. It is the compiler that is currently being used in Borland's commercial C++ development app 'C++ Builder'. The libraries that come with this compiler have been written solely for windows and have been tried and tested for years. Borland have been in the business of making C/C++ compilers right from the ancient Turbo days and so you will be in good hands with this compiler. Setup: Important Note: In all the examples given below you must
be at the Basic Setup When you complete the download you should find your self with a large
file named freecommandlinetools.exe. Double click this file and extract
it to an appropriate location on your hard drive. I recommend that you
extract the files to the default directory i.e... C:\Borland. You will
need to create
You will also have to add the compiler to the PATH environment variable
of your system. This can be done by adding the following line to the
SET PATH=C:\Borland\Bcc55\Bin;%PATH% Once you have setup up your compiler as described in the README file
open the file located in
Compiling programs with a DOS/ Command line interface Now you can begin compiling programs using the command line. Use the following command: bcc32 "Your c/cpp file location" You will now find a
If you want to compile a single file program then use the following command: bcc32 -tW "Your c/cpp file location" The -tW switch specifies a Win32 GUI application, instead of the default console application. You can compile multiple files into a single .exe by adding the other files to the end of this command. Linking in Resources This is a very frustrating issue for most users and there seems to be no easy way to do it. I find the method described below to be the easiest method. Let me know if you have found an easier one. Consider you have a file brc32 windows.rc You will now find a windows.res file in the \Bin directory of the compiler. bcc32 -c -tW windows.cpp Note: In the above example, all the arguments following
the command 'ilink32' have to be issued on the same line. I have broken
it up here due to space constraints. Since we are manually specifying the linker command, we need to include the default libraries and objs that the compiler would normally do for us. As you can see above, The appropriate files for a regular windows application have been specified. To make things easier on yourself, it's best to do all this in a makefile. You can download a standard and complete makefile by using the links provided at the end of this article. You only need to modify the first 6 lines in any program you create.
To use this make file copy the above lines into an empty text document,
make the appropriate changes to the first 6 lines and save the file
with a MAKE -fwindows.mak Here the make file is saved as Now you are all set to make programs with Win32 GUI's. Happy coding!!
Development environments:
Websites:
|
Have a C++ question? Share it at our forums Add your C++ Source Codes
|