Page 1 of 1

combining library files

Posted: Mon Jun 30, 2003 2:34 am
by Guest
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

Re: combining library files

Posted: Sun Aug 03, 2003 7:31 am
by Dr_Davenstein
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
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸><((((º>