Qb & libs

 BBS: Inland Empire Archive
Date: 04-24-92 (09:48)             Number: 104
From: TOM KIEHL                    Refer#: 85
  To: ZACK JONES                    Recvd: NO  
Subj: Qb & libs                      Conf: (2) Quik_Bas
ZJ>I'm confused.
  >library containing a few subprograms.  I then took the original program
  >(TLXUSE.BAS  8808 04-01-92  8:05p) and deleted all the subs and
  >came up with (TEST.BAS  3701 04-22-92  2:27p).  I then compiled both
  >programs from the environment and came up with:
ZJ>TLXUSE.EXE   48888 04-22-92   2:29p
  >TEST.EXE     49004 04-22-92   2:28p
ZJ>Zack Jones

Just a guess, maybe wwrong, maybe right... if your program that has all the
subs in the environment doesn't call one of them, it might
not include it in the final EXE. Whereas in the LIB/QLB
version, all subs are drawn in at link time.  Try this...
compile each sub into its own OBJ, then LIB them together
and LINK into a QLB.  THEN make your EXE and see what
results you get.  BTW, let me know how it turns out, I'm
curious too. Command line help:

    BC sub1.bas,:
    BC sub2.bas,:
    LIB mylib +sub1 +sub2 ...;
    LINK /Q mylib.lib,mylib.qlb,,bqlb45.lib;

Tom Kiehl

Oh, and you DID remove ALL the non-SUB code before you
originally made your LIB/QLB??? Say yes? Please...

 * SLMR 2.1a * Two wrongs don't make a right but 3 rights make a left!

--- TosScan 1.00
 * Origin: Carrie's Living Room - Largo, Florida USA  (1:3603/150)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET