Solved

Need Help with Qbasic linking and compiling

Posted on 2011-03-21
3
736 Views
Last Modified: 2012-06-21
I have some VERY old code that I cannot get to link in MS-DOS.   This code was built and linked many times over the last 10 years, but for some reason today I cannot get that too happen.  I have reverted to known old code that compiled and linked before and is currently in use.   I need help from someone who remembers how to do this stuff and see what is wrong.

At one point I wrote a batch file to do all the work, and here is the output from it.

H:\JANUS2~1\qb45>make_exe

H:\JANUS2~1\qb45>DEL scanner.exe

H:\JANUS2~1\qb45>BC /T /O /V /E /X SCANNER.BAS, SCANNER, NUL.LST
Microsoft (R) QuickBASIC Compiler Version 4.50
(C) Copyright Microsoft Corporation 1982-1988.
All rights reserved.
Simultaneously published in the U.S. and Canada.

43069 Bytes Available
    0 Bytes Free

    0 Warning Error(s)
    0 Severe  Error(s)

H:\JANUS2~1\qb45>LINK /NOE @SCANNER.RSP

Microsoft (R) Overlay Linker  Version 3.69
Copyright (C) Microsoft Corp 1983-1988.  All rights reserved.

Object Modules [.OBJ]: /NOE SCANNER.OBJ
Run File [SCANNER.EXE]: SCANNER
List File [NUL.MAP]:
Libraries [.LIB]: H:\JANUS2~1\QB45\IM20_BAS.LIB H:\JANUS2~1\QB45\BCOM45.LIB
LINK : warning L4051: LLIBCE.LIB : cannot find library
Enter new file spec:
LINK : warning L4051: OLDNAMES.LIB : cannot find library
Enter new file spec:

H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_fopen' : unresolved ex
ternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_fseek' : unresolved ex
ternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_read' : unresolved ext
ernal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_strcpy' : unresolved e
xternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '__searchenv' : unresolv
ed external
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_filelength' : unresolv
ed external
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_strncpy' : unresolved
external
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_sprintf' : unresolved
external
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_open' : unresolved ext
ernal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_farmalloc' : unresolve
d external
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_strlen' : unresolved e
xternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_close' : unresolved ex
ternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_fread' : unresolved ex
ternal
H:\JANUS2~1\QB45\IM20_BAS.LIB(IMSGUTLB) : error L2029 : '_fclose' : unresolved e
xternal


There were 14 errors detected

I verified that the IM20_BAS.LIB and the BCOM45.LIB files are in this directory.  I really need help on what to do from here.

Thanks in advance!

0
Comment
Question by:pamsauto
3 Comments
 
LVL 43

Expert Comment

by:Steve Knight
ID: 35185519
Has been a LONG time since I used QB45 and the like in anger Is it not just complaining of not being able to find LLIBCE.LIB and OLDNAMES.LIB.

Possibly have been removed or not on the path like they used to be say?

Steve
0
 

Author Comment

by:pamsauto
ID: 35185605
Yeah - Sorry - I should have mentioned that.   This is part of an SDK, and they specifically say in the docs that those two libraries are missing and to ignore any errors while linking about them.   I even made notes to myself about it in a text file for those two errors when this was working.   It is the unresolved errors that are stopping this from linking.
0
 
LVL 2

Accepted Solution

by:
chihs earned 500 total points
ID: 35205468
it's long time ago,  it looks like the link problem,
I found the article, hope it's helpful
http://support.microsoft.com/kb/30271/en-us
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now