home *** CD-ROM | disk | FTP | other *** search
-
- Borland Compiler Support Information
-
-
- Table of Contents
-
- I. Introduction
-
- II. Borland C++ Specifics
-
- III. Borland C++ and Turbo C++ Support
-
- IV. Turbo C 2.0 Support
-
-
- Introduction
-
- The information in the user's guide regarding using Code Base 4.2 with
- Borland compilers is slightly out of date. This is because Code Base 4.2
- has been updated to work with the new compilers. Consequently, you should
- consult the information in this file.
-
-
- Borland C++ Specifics
-
- It is the same as using Code Base 4.2 with Turbo C++ 1.0. However,
- if you wish to rebuild the library file, it is necessary to
- modify the batch file "t4.bat" to run the Borland C++ compiler.
- You do this by changing the "tcc" to "bcc".
-
-
- Borland C++ and Turbo C++ Support
-
- The library file "t4.lib" has been built for use with Turbo C++ and
- Borland C++. Note that it has been built as a C++ library rather than
- as a C library.
-
- Setup the interactive environment as follows:
-
- 1. Turbo C++ Only: Options, Full Menus - On
-
- 2. Options, Compiler, Code Generation, Model - Large
-
- 3. Options, Compiler, Code Generation, Defines
-
- If you need two or more conditional
- compilation switches, deliminate them with a semi-colon
- and a space:
-
- TURBO
-
- 4. Options, Compiler, C++ Options, Use C++ Compiler - C++ Always
-
- 5. Make sure the Turbo C++ "INCLUDE" and "LIB" library directories
- are specified so that called runtime library routines are
- automatically linked in.
-
- 6. Options, Linker, Default Libraries - On
-
- 7. Options, Directories, Include Directories - Your TC++ Include Directory
-
- 8. Options, Directories, Library Directories - Your TC++ Library Directory
-
- 9. Create a project file using the "Project" menu. This project should
- at least contain an application source file and should specify
- the Code Base 4.2 library file T4.LIB.
-
-
- Turbo C 2.0 Support
-
- To use Code Base 4.2 with Turbo C 2.0, you must do the following:
-
- 1. Modify 'p4misc.h' to remove the '#define CPP'.
-
- Before
-
- #ifdef TURBO
- #define DO_LOCK
- #define CPP
- #endif
-
- After
-
- #ifdef TURBO
- #define DO_LOCK
- #endif
-
- 2. Remove the '-P' compilation flag from the 'turboc.cfg' file.
- This flag is for Turbo C++ only.
-
- 3. Remove line 15 of file 'd4base.h'. This line is as follows:
-
- #define NO_HUGE
-
- 4. Rebuild the library using 't4.bat'
-
-
-
-