Microsoft KB Archive/26633

= Make .EXE Option Cannot Find .LIB If Not in Current Directory =

Article ID: 26633

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 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 &quot;SET LIB=path.&quot;



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;



MORE INFORMATION
The following steps demonstrate the problem:

 Assume that QB.EXE and LINK.EXE are in the root directory on Drive C. Assume that QB.QLB and QB.LIB are located in subdirectory c:\direct1.  Type the following: SET LIB=C:\DIRECT1   When logged on in the root directory, type the following: QB test.bas /L qb.qlb  Choose Make EXE File from the Run menu. QuickBasic will put the QB.LIB file in the incorrect spot in the link step. (Press F4 as a toggle to see the DOS output window.)

Additional query words: QuickBas BasicCom B_BasicCom buglist4.00 buglist4.00b buglist4.50

Keywords: KB26633

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.