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
combining library files
Moderators:Administrator, Global Moderator
-
- QBasic God
- Posts:166
- Joined:Tue Mar 25, 2003 12:45 am
- Location:U.S.A.
- Contact:
Re: combining library files
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
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸><((((º>
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!