Running the Project in Borland C++, ver. 5, or Turbo C++ for Windows, vers. 4.5
You can either create a project in the integrated environment or compile and run the project from the DOS command line. I recommend the first, but some students have had problems with this. I don't know if it is a Win95 vs Win98 problem or what it is. If the first method doesn't work, try the second.
Method 1: Creating a Project File to Run from the Integrated Environment
1. Copy the appropriate object file to your disk, placing it in a directory where you can find it.
2. Rename the file sos.obj.
3. Using your editor, write a C or C++ program (your os) and save it in a file called os.c or os.cpp. It should be on the same directory as sos.obj.
4. Create a project file, called sos.ide.
To do this in Borland C++, Version 5, or Turbo C++ for Windows, Version 4.5, do the following.
a. In Borland C++, v. 5, Select File | New | Project
In Turbo C++, v. 4.5, Select Project | New
c. Change the name of the project to sos.ide; this will also change the Target name to sos
d. Select Target type EasyWin
e. Select Target model Compact.
f. In the project window that appears, right click on the name sos.c and select Edit node attributes. Change the name to sos.obj. Click OK. If your sos.obj is in a different directory or disk, such as on your floppy, you will have to provide the full path name to the file (such as a:sos.obj).
g. In the project window, right click on the name sos.exe and select Add node. From the list of files that appears, select your file os.c, and click Open. If your file is in a different directory (such as on your floppy disk), you will have to browse for the file or supply the full path name name to add it to the list.
h. Select Options | Project | Linker | 16-bit Linker and click on the box to Enable 32-bit processing
i. Select Project | Make to compile the project files and link them into an executable file. If there are errors in the compilation or the linking, you will get messages.
or
j. Click on the lightning bolt icon to Run the project. This will both Make and Run the project. If there are errors, you will have to fix them and try again.
Method 2: Running SOS from the DOS Command Line using Borland C++, Version 5
Run the program from the DOS command line, which doesn't require you to choose EasyWin, or ANY type of project application.
Simply open a DOS window, make it full screen and type this:
C C++
bcc sos.obj os.c bcc sos.obj os.cpp
OR compile your project separately first
bcc -c os.c bcc -c os.cpp
then link them
bcc sos.obj sos.obj
Either way, run it by typing
sos
at the prompt.
If you want to send output to a file or to the printer, use redirection
sos > c:\myfiles\sos.out
or
sos > prn