Dec 222017
 
BASIC 4.5 utility program to help in combining a number of .LIB files into one QLB file. Automatically makes a BATCH file that will copy all OBJ files out of the LIB files, and also makes a RESPONSE file for doing the QLB
File LIBTOQLB.ZIP from The Programmer’s Corner in
Category BASIC Language
BASIC 4.5 utility program to help in combining a number of .LIB files into one QLB file. Automatically makes a BATCH file that will copy all OBJ files out of the LIB files, and also makes a RESPONSE file for doing the QLB
File Name File Size Zip Size Zip Type
LIBOBJ.BAS 1233 584 deflated
LIBOBJ.EXE 42042 31353 deflated
LIBTOQLB.DOC 3067 1192 deflated
TPCREAD.ME 199 165 deflated

Download File LIBTOQLB.ZIP Here

Contents of the LIBTOQLB.DOC file


LIBTOQLB.ZIP Convert 1 or more .LIB files into one QLB file

Contents of ZIP file:

LIBTOQLB.DOC : This documentation file
LIBOBJ.BAS : QBASIC program to help in this process
LIBOBJ.EXE : STAND ALONE EXE file for above

=================================================================

SUMMARY:
========


This may be a simple way to combine QBASIC libraries (.LIB) into one
QLB file.

The only way I can see to do this is to extract ALL the OBJ files from
all the LIB files, and then build a QLB file from all those libraries.

LIBOBJ.EXE (from LIBOBJ.BAS) is a utility program to help you do this.


Example of use:
---------------
Assume you have 2 library files : f1.lib and f2.lib
you wish to make a QBL file f12.qlb
which contains all (or some) of the routines in f1.lib & f2.lib


Assume Qbasics LIB.EXE, LINK.EXE, BQLB45.lib and the above files are
in the current directory. (you figure out what to do if they are not !!)

====================================================================

(1) Make a listing file (.lst) for each .LIB file

ie LIB f1,,f1.lst;
LIB f2,,f2.lst;
====================================================================

(2) Run LIBOBJ for each LST file

ie LIBOBJ f1
LIBOBJ f2

LIBOBJ reads a listing file (assuming a .lst extention) and produces
(a) A BAT file that will copy every .obj file from that lib file
(b) A JOB file that is a list of all the object files

ie in our case LIBOBJ f1 will produce f1.bat & f1.job
LIBOBJ f2 will produce f2.bat & f2.job

(this is the tedious bit to do by hand for multi object LIB files !!)

=======================================================================

(3) Run all the produced BAT files (these copy out the OBJ files)

ie F1.bat
F2.bat

=======================================================================

(4) Finally do your LINK, using the JOB files

ie LINK /Q @f1.job @f2.job
(to finish obj input)
F12.qlb (name you want for your QLB file)
(do you really want a map !!!!)
BQLB45.lib (QBASIC's QLB library file)

THATS IT !!!!!!

=======================================================================

Note: you will have generated a whole lot of OBJ files !!!!

BTW. If you LINK each obj file seperately to produce seperate EXE files
(ie LINK without the /Q option), you can then load the EXE file
with DEBUG (or run a dis-assembler on the EXE), and look at the
asm source !!!!!!


If you don't want ALL the routines within your LIB files to be in your
QLB file, (unwanted ones take up room when in the QBASIC Environment and
therefore linit your program size), then BEFORE the link in step 4, use a
TEXT EDITOR to edit the .JOB files


================== The end =======================




 December 22, 2017  Add comments

Leave a Reply