To much linked stuff !? Win32 v3.93 Bug !?

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

To much linked stuff !? Win32 v3.93 Bug !?

Post by va!n »

Hi Fred!
when using only the pure command "InitSprite()" and compile it and take a look to the asm output, i noticed following...
; Sprite
; SimpleList
; ImagePlugin
; Keyboard
; MultimediaBase
- What is SimpleList (can't find the lib)?
- Why are SimpleList, ImagePlugin and Keyboard libs linked too?

I think, if people dont use any Keyboard functions in there code, the Keyboard lib isnt needed to be linked to the exe!? Same for ImagePlugin!? What do you think?

:wink:
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

SimpleList is an internal library used for PB object management.
Note, that when you see the name of a library written in the asm code, it only means,
that there is one or more functions of that lib required.
There will be however only the functions that are required linked to your exe, not the whole lib.

Many libraries share functions with others to avoid repeating code, so there is nothing wrong here.

Don't worry, no unused stuff is included ;)
quidquid Latine dictum sit altum videtur
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

ok, thanks for the info :wink:

so i think, the keyboard lib (or a part of it) will be included too, due fact to init the DX based Keboard commands (too, if you dont use one of its command) , right?
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

For example the ImagePlugin lib won't be linked at all if you don't use Load/SaveSprite(). All is very modular in PB, it's not because a library is specified than one of its command will be linked.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

thanks for the info fred! you are doing a great job!
btw, today i send you some stuff by smail. maybe some things may be interesting for you (like how to speed up pb a lot), be patienced :wink:
Post Reply