combining library files

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
combining library files

Post by Guest » Mon Jun 30, 2003 2:34 am

I am just learning basic and i have a question. I need to access functions from two different libraries in a single program. Do i need to combine these libraries into a single library, and if so how??, or is there another way to do this?
-kevin

Dr_Davenstein
QBasic God
Posts:166
Joined:Tue Mar 25, 2003 12:45 am
Location:U.S.A.
Contact:

Re: combining library files

Post by Dr_Davenstein » Sun Aug 03, 2003 7:31 am

I got this email from Piptol. It's everything you need to know. I also put a URL to some games I've made if you want to check it out
http://www.geocities.com/dr_davenstein/Files

You should also check out Piptol's site. Try the SQUEALERS TNT game, It's a riot!!! :)
------------------------------------------------------------------------
Here's how it's done. If you have RelLib.LIB and
DS4QB.LIB files for example, you can combine them into
a single library. First make COMBLIB.LIB (or whatever
you want to call it):

LIB COMBLIB +RelLib.LIB +DS4QB.LIB;

Then make COMBLIB.QLB:

LINK /Q COMBLIB.LIB, COMBLIB,,BQLB45;


If you want to make an executable using LINK.EXE from
DOS, you can either use COMBLIB.LIB or you can use the
individual .LIB files:

LINK object1 object2 [...],,,COMBLIB;

or

LINK object1 object2 [...],,,RelLib +DS4QB;

Cheers,
Piptol

Piptol Produtions
´¯`·.¸¸.·´¯`·.¸><((((((º>
http://www.piptol.net
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸><((((º>
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!

Post Reply