ERR: "Unresolved Reference" Using C 7.0 Makefile with 2.5 LCK

Last reviewed: August 28, 1995
Article ID: Q105596
The information in this article applies to:
  • Microsoft FoxPro Library Construction Kit, version 2.5
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a

SYMPTOMS

When you are creating a library using the FoxPro 2.5 Library Construction Kit (LCK), numerous errors occur during the compiling and linking process. One of these errors is "Unresolved Reference."

CAUSE

The error occurs because the C compiler (Microsoft C 7.0 in this case) cannot find the library, object, or header file that is displayed in the error.

For example, the compiler may not be able to find the LIBW.LIB file that is referenced in the makefile provided with the LCK for use with Microsoft C 7.0. This file, part of the Microsoft Windows Software Development Kit (SDK), is a library file containing Windows functions that can be called in a FoxPro for Windows .FLL library. When you are using the Microsoft C 7.0 makefile provided with the LCK to produce an .FLL library, the "Unresolved Reference" error message will occur if the SDK is not installed.

RESOLUTION

To track down the cause of the "Unresolved Reference" error, do the following:

  1. Check for the existence of the file that contains the function or library reference that is causing the error.

  2. Check the MS-DOS PATH statement to make sure the file or library can be found at compile and link time.

  3. Make sure all MS-DOS SET environment variables needed by the compiler are set correctly in the AUTOEXEC.BAT file.

  4. Make sure the filename listed in the makefile is spelled correctly.

MORE INFORMATION

A makefile is used to compile and link a C library or executable. As mentioned above, there is a sample makefile for use with C 7.0 in conjunction with the LCK to create C libraries to interface with FoxPro for Windows. The libraries created by the LCK have an extension of .PLB for FoxPro for MS-DOS and .FLL for FoxPro for Windows.

REFERENCES

FoxPro Library Construction Kit, "Developer's Guide," version 2.5, page 27


Additional reference words: FoxWin 2.50 2.50A C7 errmsg err msg tshoot
KBCategory: kbprg kbprb kberrmsg kbtshoot
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: August 28, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.