How to Compile an MLB with MPW Version 3.3

Last reviewed: June 3, 1996
Article ID: Q129863
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.6a

SUMMARY

Below are the step-by-step instructions for compiling a .MLB file using the Apple Macintosh Programmer's Workbench (MPW) version 3.3 and the Microsoft FoxPro for Macintosh Library Construction Kit (LCK) files. The steps include the specifics for compiling TESTLIB.C, which is supplied as a sample .C program with the FoxPro LCK.

MORE INFORMATION

NOTE: Before performing these steps, you must install Microsoft FoxPro for Macintosh (Professional Edition), MPW, and the C compiler.

Steps to Compile a .MLB File

  1. Move the following folders from the FoxPro:Library Construction Kit folder to your hard drive folder:

    ASLM Developer Tools FoxLCK

  2. Move the UserStartup*LCK file from the FoxPro:Library Construction Kit folder to your MPW Folder.

    IMPORTANT: Compiling an .MLB file with MPW is most successful if your hard drive volume name does not contain any spaces.

  3. Use the MPW Shell to correct the hard drive volume name on the following lines in the UserStartup*LCK file:

    set SLMInterfaces... set SLMLibraries... set Commands...

    For example, if your hard drive name is "HD" (without the quotation marks) instead of "Macintosh HD," then the lines would look like this:

    set SLMInterfaces "HD:ASLM Developer Tools:Interfaces:" set SLMLibraries "HD:ASLM Developer Tools:Libraries:" set Commands "HD:ASLM Developer Tools:Tools:,{Commands}"

  4. Use the MPW Shell to correct the hard drive volume name on the ROOTDIR line in the MakeFile file in the FoxLCK:Source folder. For example, if your hard drive name is HD, the line would look like this:

    ROOTDIR = HD:FoxLCK

    NOTE: compiling is most successful if the hard drive name has no spaces, as in this example.

  5. Exit and restart the MPW Shell.

  6. Choose "Set Directory" from the Directory menu in the MPW shell, and select the folder that contains your source file, .EXP file, and the MakeFile. For this example, select the FoxLCK:Source folder.

  7. Type "make" (without the quotation marks) on the MPW worksheet. Then press the ENTER key on the numeric keypad or COMMAND+RETURN. The MPW shell will echo the commands required to make the MLB file.

  8. Highlight the entire block of commands echoed from the MAKE command. Then press ENTER (or COMMAND+RETURN). If the compile is successful, your .MLB file will be located in the source folder.

Steps to Use a .MLB File

  1. Move the .MLB file to the System Folder:Extensions folder.

  2. Start FoxPro for Macintosh.

  3. In the Command window, type the following and press ENTER:

    SET LIBRARY TO <.MLB file>

    In this example, the .MLB file is "TESTLIB.MLB".


Additional reference words: FoxMac 2.60a
KBCategory: kbtool
KBSubcategory: FxtoolLck


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 3, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.