Index

Usage of Turbo CPP for DOS

Content (automatic)

packtc - transport all files to a DOS computer


For this invoke at a main machine the batch file packtc.bat:
cd \home\cc
packtc
Then transport all (or only the neccesary) files from C:\TEMP\CC through some floppy disk to the DOS computer to C:\TEMP
In the DOS computer have arj.exe in the search path
Then invoke in C:\TEMP UPDATE.BAT (or UNPACK.BAT)

UPDATE.BAT contains
 REM Update for Borlands Turbo CPP
 md \home
 md \home\cc
 CD \HOME\CC
 arj -u x \TEMP\root.arj
 md \HOME\CC\LQ
 Cd \HOME\CC\LQ
 arj -u x \TEMP\LQ.ARJ
 md \HOME\CC\INCLUDE
 Cd \HOME\CC\INCLUDE
 arj -u x \TEMP\INCLUDE.ARJ
 md \HOME\CC\LQ\TC
 Cd \HOME\CC\LQ\TC
 arj -u x \TEMP\LQTC.ARJ
 md \HOME\CC\QQ
...

UNPACK.BAT

I use the turbo C++ after installing it into C:\TC For installation see tcinst.htm . The compiler itself is then c:\TC\BIN\tcc.exe, the integrated development environment (IDE) is c:\TC\BIN\tc.exe
Usually the DOS PATH variable should point to this directory.

When I wish to use the borlands Turbo C++ for DOS, then I go to the directory c:\home\cc and invoke tc.bat :

c:
cd \home\cc
tc
This sets up the PATH environment, depending on OPATH, if OPATH exists.

Usage with Integrated Development Environment


Then I decide wether to edit compile and run
cd qq
cd tc
tc qqvt.prj
After creation of a new project it is neccesary to add the include directory c:\home\cc\include

Usage as compiler + linker - The traditional compiling

From the subdirectory home/cc you invoke tc.bat.
Then you can compile one of the main programs from directory qq or util
cd \home\cc
tc
cd qq
ccs qqvt
lnk qqvt
The .bat files are invoked through the environment PATH: C:\home\cc\tcbat\ccs.bat and C:\home\cc\tcbat\lnk.bat

Running compiled programs

For above example just type qqvt[Enter]. The compiled .exe file is in c:\extc\qqvt.exe. the path variable points to this directory.

Problems with the usage of Borlands TC++ 1.01

Errors

floating point formats not linked

Found www : http://www.faqs.org/faqs/msdos-programmer-faq/part2/section-5.html

Reason: FLoating point support is not loaded

Action: Add somewhere (in vt.cpp)

static void forcefloat(float *p) 
{
float f = *p;
forcefloat(&f);
}
Problem: This does not help
Action:
extern unsigned _floatconvert;
#pragma extref _floatconvert

  • See also

    In Internet: