Building MS-DOS - based Applications with the Borland C++ Compiler
You can build DB-Library applications for MS-DOS with the Borland C++ Compiler version 3.1 or later. To compile and link DB-Library programs for MS-DOS, keep the following points in mind:
-
The BMDBLIB.LIB (medium model) library is used in place of RMDBLIB.LIB; the BLDBLIB.LIB (large model) library is used in place of RLDBLIB.LIB.
-
The stack size must be set to 8192 or greater. For example:
extern unsigned _stklen = 8192;
-
To run a program within the Borland IDE or to use the debugger, you must first load an appropriate Net-Library (for example, DBNMPIPE.EXE).
-
The following command illustrates a typical compilation with automatic linkage:
bcc -ml -v -Ic:\sql\dblib\include -Lc:\sql\dblib\lib app.c bldblib.lib
APP.C is the name of your application. Notice that the large model library, BLDBLIB.LIB, is specified.