Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Mach SIx v1.1c - Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Compiling & Linking with Mach SIx:

  Mach SIx query optimizer is comprised of the library (MACHSIX.LIB), the
  header files (MACHSIX.CH, MACHSIX2.CH), and an object file MACHSIX.OBJ.

  There are two ways to get your program up and running with Mach SIx.
  You have a choice between "link only" and "re-compile" optimization.

  The "link only" method only provides automatic optimization of SET
  FILTER conditions which is especially useful when you don't have the
  source to the Clipper code as in some third party accounting systems.
  The "re-compile" method will produce optimization for all commands
  Mach SIx supports.

  Link Only:

  To use the "link only" method simply re-link your application with
  MACHSIX.OBJ, MACHSIX.LIB, and the appropriate "hook" .OBJ file (depending
  on whether you are using the SIx Driver or Hiper-SIx), as in the example 
  below.


    With The SIx Driver:

      RTLINK FI myapp, dbfsix, machsix, mach6six LIB dbfsix, machsix


    With HiPer-SIx:

      RTLINK FI myapp, dbfnsx, machsix, mach6nsx LIB dbfnsx, machsix


  Re-compile:

  Use the following steps for the "re-compile" option.

  1.  Include the MACHSIX.CH header in your source program file AFTER the
      DBFSIX.CH (or DBFNSX.CH) header file.

           +-------------------------------------+
           |  /*-----(  EXAMPLE.PRG  )------*/   |
           |                                     |
           |  #include "DBFSIX.CH"               |
           |  #include "MACHSIX.CH"              |
           |                                     |
           |  FUNCTION StudentMenu()             |
           |                                     |
           |     use STUDENTS index STUDID       |
           |        .                            |
           |     set filter to...                |
           |        .                            |
           |     close data                      |
           |                                     |
           |  RETURN ( NIL )                     |
           |                                     |
           |  /*---( EOF: EXAMPLE.PRG )---*/     |
           +-------------------------------------+


  2. Compile your application with your usual switch settings.

       Clipper EXAMPLE.PRG  /n /w /p /b /a


  3. Link your application with the Mach SIx library.


    With The SIx Driver:

      RTLINK FI example, mach6six LIB dbfsix, machsix, clipper, extend

        or

      BLINKER FI example, mach6six LIB dbfsix, machsix, clipper, extend

        or

      WARPLINK example mach6six,,,dbfsix machsix clipper extend


    With HiPer-SIx:

      RTLINK FI example, mach6nsx LIB dbfnsx, machsix, clipper, extend

        or

      BLINKER FI example, mach6nsx LIB dbfnsx, machsix, clipper, extend

        or

      WARPLINK example mach6nsx,,,dbfnsx machsix clipper extend




Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson