home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c160 / 2.ddi / TC / BORLAND.DOC next >
Encoding:
Text File  |  1991-02-18  |  2.6 KB  |  99 lines

  1.  
  2. Borland Compiler Support Information
  3.  
  4.  
  5. Table of Contents
  6.  
  7.    I.   Introduction
  8.  
  9.    II.  Borland C++ Specifics
  10.  
  11.    III. Borland C++ and Turbo C++ Support
  12.  
  13.    IV.  Turbo C 2.0 Support
  14.  
  15.  
  16. Introduction
  17.    
  18.       The information in the user's guide regarding using Code Base 4.2 with
  19.    Borland compilers is slightly out of date.  This is because Code Base 4.2
  20.    has been updated to work with the new compilers.  Consequently, you should
  21.    consult the information in this file.
  22.  
  23.  
  24. Borland C++ Specifics
  25.  
  26.    It is the same as using Code Base 4.2 with Turbo C++ 1.0.  However,
  27.    if you wish to rebuild the library file, it is necessary to
  28.    modify the batch file "t4.bat" to run the Borland C++ compiler.
  29.    You do this by changing the "tcc" to "bcc".
  30.  
  31.  
  32. Borland C++ and Turbo C++ Support
  33.  
  34.    The library file "t4.lib" has been built for use with Turbo C++ and
  35.    Borland C++.  Note that it has been built as a C++ library rather than
  36.    as a C library.
  37.  
  38.    Setup the interactive environment as follows:
  39.  
  40.    1.  Turbo C++ Only:  Options, Full Menus - On
  41.  
  42.    2.  Options, Compiler, Code Generation, Model -  Large
  43.  
  44.    3.  Options, Compiler, Code Generation, Defines
  45.  
  46.        If you need two or more conditional
  47.        compilation switches, deliminate them with a semi-colon
  48.        and a space:
  49.  
  50.            TURBO
  51.  
  52.    4.  Options, Compiler, C++ Options, Use C++ Compiler -  C++ Always
  53.  
  54.    5.  Make sure the Turbo C++ "INCLUDE" and "LIB" library directories 
  55.        are specified so that called runtime library routines are
  56.        automatically linked in.
  57.  
  58.    6.  Options, Linker, Default Libraries - On
  59.  
  60.    7.  Options, Directories, Include Directories - Your TC++ Include Directory
  61.  
  62.    8.  Options, Directories, Library Directories - Your TC++ Library Directory
  63.  
  64.    9.  Create a project file using the "Project" menu.  This project should
  65.        at least contain an application source file and should specify
  66.        the Code Base 4.2 library file T4.LIB.
  67.  
  68.  
  69. Turbo C 2.0 Support
  70.  
  71.    To use Code Base 4.2 with Turbo C 2.0, you must do the following:
  72.  
  73.    1.  Modify 'p4misc.h' to remove the '#define CPP'.
  74.  
  75.        Before
  76.  
  77.          #ifdef TURBO
  78.          #define DO_LOCK
  79.          #define CPP
  80.          #endif
  81.  
  82.        After
  83.  
  84.          #ifdef TURBO
  85.          #define DO_LOCK
  86.          #endif
  87.  
  88.    2.  Remove the '-P' compilation flag from the 'turboc.cfg' file.
  89.        This flag is for Turbo C++ only.
  90.  
  91.    3.  Remove line 15 of file 'd4base.h'.   This line is as follows:
  92.  
  93.          #define NO_HUGE
  94.  
  95.    4.  Rebuild the library using 't4.bat'
  96.  
  97.  
  98.  
  99.