Retro programming in Borland C++ 3.1
To build and run the Borland C++ demos, you must first install the following tools:
$ sudo zypper install dosbox mtools p7zip-full
$ sudo apt install dosbox mtools p7zip-full
When starting dosbox
the first time, the configuration file ~/.dosbox/dosbox-0.74-2.conf
will be generated
-
Download
Borland C++ 3.1 & Application Frameworks (3.5).7z
-
Create a directory which will contain the DOS C: drive
$ mkdir ~/DOSBox
-
Extract the downloaded Borland C++ archive
$ 7z x "Borland C++ 3.1 & Application Frameworks (3.5).7z"
-
Extract the Borland C++ disk images
$ cd "Borland C++ 3.1 & Application Frameworks (3.5)"/ $ mkdir bcsetup $ for i in *.img; do echo $i; mcopy -m -i $i :: bcsetup; done
-
Move the extracted files to the DOS C: drive
$ mv bcsetup ~/DOSBox/
-
Configure DOSBox
Edit
~/.dosbox/dosbox-0.74-2.conf
and add the following autoexec options[autoexec] mount c ~/DOSBox path %PATH%;C:\BORLANDC\BIN c:
-
Start
dosbox
and execute the Borland C++ installation program$ dosbox C:\> cd bcsetup C:\BCSETUP> install.exe
In the installation program, select the following options
Enter the SOURCE drive to use: C Enter the SOURCE Path: \BCSETUP Windows Options... WINDOWS Capability: No Start Installation
Link the dos-bcdemos
git repository to the DOS C: drive
$ ln -s ~/git/github/dos-bcdemos ~/DOSBox/bcdemos
-
Execute build script
C:\BCDEMOS> buildall.bat
The demos will be located in the
C:\BCDEMOS\BUILD
directory -
Run demo
C:\BCDEMOS> build\demo01.exe
-
Start Borland C++ IDE
C:\BCDEMOS> bc
-
Configure Borland C++
Press
ALT+O
for optionsSelect
Directories
and type in the following directoriesInclude Directories: C:\BORLANDC\INCLUDE;C:\BCDEMOS\SRC Library Directories: C:\BORLANDC\LIB Output Directory: C:\BCDEMOS\BUILD
Select
Debugger
and the following optionsProgram Heap Size: 512 K Bytes
Select
Environment
,Preferences
and the following options[ ] Auto-Save
Select
Environment
,Editor
and the following options[ ] Create backup files
Select
Save
-
Open demo source file
Press
F3
to open file -
Build demo source file
Press
F9
to build file -
Run demo
Press
ALT+R
andR
to run demo
Licensed under MIT license. See LICENSE for more information.
- Johan Gardhage
- Original code written by Ben Houston