Qbasicnews.com
lib question... - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: lib question... (/thread-3524.html)



lib question... - R@dioman - 03-19-2004

When you load a library in QB, do only the declared routines get included in the used string space, or does the entire library that's been? What I mean is, is it better to combine only the object files that you use, or it doesn't matter since you won't be declaring all the functions and routines anyways? Thanks


lib question... - na_th_an - 03-19-2004

LIBs have nothing to do with String space. STRINGS have. I mean, your STRING space will get full if your routines use many strings.

About your question, I think that the LINKer is smart enough to link to your EXE just the OBJs that are used in a LIB. But I may be wrong.

Something way different is QLBs. The bigger they are, the more chances exist that you are not able to run the IDE.


lib question... - R@dioman - 03-19-2004

Hmmm, so good programming habits would be to take only the obj files that you are using and making a new qlb out of it. That's what I've been doing, but I just want to see if it made a difference. Thanks


lib question... - Neo - 03-22-2004

Quote:Something way different is QLBs. The bigger they are, the more chances exist that you are not able to run the IDE.
I think (always thought) that the QLBs get loaded into QB IDE's memory, either only the definitions or the whole lib (I think the former though).


lib question... - na_th_an - 03-22-2004

QLBs are loaded completely. You are in the IDE, so QB has no idea about what FUNCTIONs or SUBs you are gonna use. Linking is different: LINK knows which FUNCTIONS/SUBs you have used.