Make .EXE Option Cannot Find .LIB If Not in Current Directory (26633)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
This article was previously published under Q26633 SYMPTOMS
When QB is invoked with the /L switch to load a Quick library and you
choose the Make EXE File or Make Library commands from the Run menu,
LINK.EXE is unable to find the .LIB file that corresponds to the Quick
library when the Quick library and .LIB are not in the current
directory.
This LINK problem occurs even when the directory where the Quick
library and the .LIB are located is correctly pointed to with the DOS
command "SET LIB=path."
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions
4.00, 4.00b, and 4.50 and in the version of QuickBasic that comes with
Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and MS
OS/2 (buglist6.00, buglist6.00b). This problem was corrected in
QBX.EXE in Microsoft Basic Professional Development System (PDS)
Version 7.00 for MS-DOS and MS OS/2 (fixlist7.00).
One workaround is to give a full pathname to the .QLB when invoking
QuickBasic, as in the following example:
QB test.bas /L c:\direct1\qb.qlb
Another workaround is to manually perform the link from the DOS
command line, correctly putting the .LIB file as the fourth argument,
as follows:
LINK test.obj,,,qb.lib;
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB26633 kbAudDeveloper |
---|
|