BUG: Error When Building Project: Unable to Find Library

Last reviewed: June 27, 1995
Article ID: Q123001
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6
  • Microsoft FoxPro for MS-DOS, version 2.6

SYMPTOMS

Building a Project causes this error:

   Unable to find library.

CAUSE

In version 2.6 of FoxPro for Windows and FoxPro for DOS 2.6, you can have multiple Procedure libraries by using the SET LIBRARY TO command with program (.PRG) files. Therefore, the following command statement is a valid statement:

   SET LIBRARY TO PROCLIB2.PRG

However when building the application, the Project manager is not able to identify or locate this file because the Project manager is expecting a .PLB or .FLL file extension, the only values that were valid in previous FoxPro versions.

RESOLUTION

Change the SET LIBRARY TO PROCLIB2.PRG to read as follows:

   SET LIBRARY TO "PROCLIB2.PRG"

Include the quotation marks. Add the PROCLIB2.PRG file to the project manually.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a program file called MAIN.PRG with the following commands:

    SET PROCEDURE TO PROCLIB1.PRG SET LIBRARY TO PROCLIB2.PRG

    DO proc1 DO proc2 RETURN

  2. Create the first procedure file (PROCLIB1.PRG) by using these commands:

    PROCEDURE proc1

          WAIT WINDOW " this is from procedure file 1"
    
    RETURN

  3. Create the second procedure file (PROCLIB2.PRG) by using these commands:

    PROCEDURE proc2

          WAIT WINDOW "this is from procedure file 2"
    
    RETURN

  4. Create a project called Test, and add the MAIN.PRG program. Build the project. Two errors will occur. To resolve the errors, edit MAIN.PRG. Change the SET LIBRARY TO proclib2.prg to read as follows:

          SET LIBRARY TO "PROCLIB2.PRG"
    

    Then add the program PROCLIB2.PRG to the project as a program file, and rebuild the project.


Additional reference words: FoxDos FoxWin 2.60 buglist2.60
KBCategory: kbprg kbbuglist
KBSubcategory: FxtoolProjman


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 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.